Class: BeyondApi::Configuration
- Inherits:
-
Object
- Object
- BeyondApi::Configuration
- Defined in:
- lib/beyond_api.rb
Instance Attribute Summary collapse
-
#all_pagination_size ⇒ Object
Returns the value of attribute all_pagination_size.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#log_bodies ⇒ Object
Returns the value of attribute log_bodies.
-
#log_headers ⇒ Object
Returns the value of attribute log_headers.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#object_struct_responses ⇒ Object
Returns the value of attribute object_struct_responses.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#raise_error_requests ⇒ Object
Returns the value of attribute raise_error_requests.
-
#remove_response_key_underscores ⇒ Object
Returns the value of attribute remove_response_key_underscores.
-
#remove_response_links ⇒ Object
Returns the value of attribute remove_response_links.
-
#retry_options ⇒ Object
Returns the value of attribute retry_options.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/beyond_api.rb', line 34 def initialize @client_id = nil @client_secret = nil @open_timeout = 2 @timeout = 5 @remove_response_links = false @remove_response_key_underscores = false @object_struct_responses = false @raise_error_requests = false @log_level = :info @log_headers = false @log_bodies = false @all_pagination_size = 200 @retry_options = { max: 5, interval: 0.05, interval_randomness: 0.5, backoff_factor: 2, retry_statuses: [409], exceptions: [Faraday::TimeoutError, Faraday::ConnectionFailed] } end |
Instance Attribute Details
#all_pagination_size ⇒ Object
Returns the value of attribute all_pagination_size.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def all_pagination_size @all_pagination_size end |
#client_id ⇒ Object
Returns the value of attribute client_id.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def client_secret @client_secret end |
#log_bodies ⇒ Object
Returns the value of attribute log_bodies.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def log_bodies @log_bodies end |
#log_headers ⇒ Object
Returns the value of attribute log_headers.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def log_headers @log_headers end |
#log_level ⇒ Object
Returns the value of attribute log_level.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def log_level @log_level end |
#object_struct_responses ⇒ Object
Returns the value of attribute object_struct_responses.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def object_struct_responses @object_struct_responses end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def open_timeout @open_timeout end |
#raise_error_requests ⇒ Object
Returns the value of attribute raise_error_requests.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def raise_error_requests @raise_error_requests end |
#remove_response_key_underscores ⇒ Object
Returns the value of attribute remove_response_key_underscores.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def remove_response_key_underscores @remove_response_key_underscores end |
#remove_response_links ⇒ Object
Returns the value of attribute remove_response_links.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def remove_response_links @remove_response_links end |
#retry_options ⇒ Object
Returns the value of attribute retry_options.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def @retry_options end |
#timeout ⇒ Object
Returns the value of attribute timeout.
30 31 32 |
# File 'lib/beyond_api.rb', line 30 def timeout @timeout end |