improve documentation
This commit is contained in:
parent
aea11d303e
commit
6eb36931be
2 changed files with 36 additions and 10 deletions
|
|
@ -46,41 +46,65 @@ module DiasporaFederation
|
||||||
# {Callbacks} instance with defined callbacks
|
# {Callbacks} instance with defined callbacks
|
||||||
# @see Callbacks#on
|
# @see Callbacks#on
|
||||||
# @see Callbacks#trigger
|
# @see Callbacks#trigger
|
||||||
|
# @return [Callbacks] callbacks
|
||||||
attr_reader :callbacks
|
attr_reader :callbacks
|
||||||
|
|
||||||
# the pod url
|
# the pod url
|
||||||
#
|
#
|
||||||
# @example with uri
|
# @overload server_uri
|
||||||
# config.server_uri = URI("http://localhost:3000/")
|
# @return [URI] the server uri
|
||||||
# @example with configured pod_uri
|
# @overload server_uri=
|
||||||
# config.server_uri = AppConfig.pod_uri
|
# @example with uri
|
||||||
|
# config.server_uri = URI("http://localhost:3000/")
|
||||||
|
# @example with configured pod_uri
|
||||||
|
# config.server_uri = AppConfig.pod_uri
|
||||||
|
# @param [URI] value the server uri
|
||||||
attr_accessor :server_uri
|
attr_accessor :server_uri
|
||||||
|
|
||||||
# Set the bundle of certificate authorities (CA) certificates
|
# Set the bundle of certificate authorities (CA) certificates
|
||||||
#
|
#
|
||||||
# @example
|
# @overload certificate_authorities
|
||||||
# config.certificate_authorities = AppConfig.environment.certificate_authorities.get
|
# @return [String] path to certificate authorities
|
||||||
|
# @overload certificate_authorities=
|
||||||
|
# @example
|
||||||
|
# config.certificate_authorities = AppConfig.environment.certificate_authorities.get
|
||||||
|
# @param [String] value path to certificate authorities
|
||||||
attr_accessor :certificate_authorities
|
attr_accessor :certificate_authorities
|
||||||
|
|
||||||
# Maximum number of parallel HTTP requests made to other pods (default: +20+)
|
# Maximum number of parallel HTTP requests made to other pods (default: +20+)
|
||||||
#
|
#
|
||||||
# @example
|
# @overload http_concurrency
|
||||||
# config.http_concurrency = AppConfig.settings.typhoeus_concurrency.to_i
|
# @return [Integer] max number of parallel requests
|
||||||
|
# @overload http_concurrency=
|
||||||
|
# @example
|
||||||
|
# config.http_concurrency = AppConfig.settings.typhoeus_concurrency.to_i
|
||||||
|
# @param [Integer] value max number of parallel requests
|
||||||
attr_accessor :http_concurrency
|
attr_accessor :http_concurrency
|
||||||
|
|
||||||
# timeout in seconds for http-requests (default: +30+)
|
# timeout in seconds for http-requests (default: +30+)
|
||||||
|
#
|
||||||
|
# @overload http_timeout
|
||||||
|
# @return [Integer] http timeout in seconds
|
||||||
|
# @overload http_timeout=
|
||||||
|
# @param [Integer] value http timeout in seconds
|
||||||
attr_accessor :http_timeout
|
attr_accessor :http_timeout
|
||||||
|
|
||||||
# Turn on extra verbose output when sending stuff. (default: +false+)
|
# Turn on extra verbose output when sending stuff. (default: +false+)
|
||||||
#
|
#
|
||||||
# @example
|
# @overload http_verbose
|
||||||
# config.http_verbose = AppConfig.settings.typhoeus_verbose?
|
# @return [Boolean] verbose http output
|
||||||
|
# @overload http_verbose=
|
||||||
|
# @example
|
||||||
|
# config.http_verbose = AppConfig.settings.typhoeus_verbose?
|
||||||
|
# @param [Boolean] value verbose http output
|
||||||
attr_accessor :http_verbose
|
attr_accessor :http_verbose
|
||||||
|
|
||||||
# max redirects to follow
|
# max redirects to follow
|
||||||
|
# @return [Integer] max redirects
|
||||||
attr_reader :http_redirect_limit
|
attr_reader :http_redirect_limit
|
||||||
|
|
||||||
# user agent used for http-requests
|
# user agent used for http-requests
|
||||||
|
# @return [String] user agent
|
||||||
attr_reader :http_user_agent
|
attr_reader :http_user_agent
|
||||||
|
|
||||||
# configure the federation library
|
# configure the federation library
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@ module DiasporaFederation
|
||||||
# @!attribute [r] provider_display_name
|
# @!attribute [r] provider_display_name
|
||||||
# a string that describes a means by which a user has posted the post
|
# a string that describes a means by which a user has posted the post
|
||||||
# @return [String] provider display name
|
# @return [String] provider display name
|
||||||
|
#
|
||||||
|
# @param [Entity] entity the entity in which it is included
|
||||||
def self.included(entity)
|
def self.included(entity)
|
||||||
entity.class_eval do
|
entity.class_eval do
|
||||||
property :author, xml_name: :diaspora_handle
|
property :author, xml_name: :diaspora_handle
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue