Class: Clientele::Configuration
- Inherits:
-
BlockParty::Configuration
- Object
- BlockParty::Configuration
- Clientele::Configuration
- Defined in:
- lib/clientele/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#follow_redirects ⇒ Object
Returns the value of attribute follow_redirects.
-
#hashify_content_type ⇒ Object
Returns the value of attribute hashify_content_type.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#redirect_limit ⇒ Object
Returns the value of attribute redirect_limit.
-
#root_url ⇒ Object
Returns the value of attribute root_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 17 18 |
# File 'lib/clientele/configuration.rb', line 10 def initialize self.logger = Logger.new($stdout) self.adapter = Faraday.default_adapter self.headers = {} self.hashify_content_type = /\bjson$/ self.follow_redirects = true self.redirect_limit = 5 self.ensure_trailing_slash = true end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
8 9 10 |
# File 'lib/clientele/configuration.rb', line 8 def adapter @adapter end |
#follow_redirects ⇒ Object
Returns the value of attribute follow_redirects.
8 9 10 |
# File 'lib/clientele/configuration.rb', line 8 def follow_redirects @follow_redirects end |
#hashify_content_type ⇒ Object
Returns the value of attribute hashify_content_type.
8 9 10 |
# File 'lib/clientele/configuration.rb', line 8 def hashify_content_type @hashify_content_type end |
#headers ⇒ Object
Returns the value of attribute headers.
8 9 10 |
# File 'lib/clientele/configuration.rb', line 8 def headers @headers end |
#logger ⇒ Object
Returns the value of attribute logger.
8 9 10 |
# File 'lib/clientele/configuration.rb', line 8 def logger @logger end |
#redirect_limit ⇒ Object
Returns the value of attribute redirect_limit.
8 9 10 |
# File 'lib/clientele/configuration.rb', line 8 def redirect_limit @redirect_limit end |
#root_url ⇒ Object
Returns the value of attribute root_url.
8 9 10 |
# File 'lib/clientele/configuration.rb', line 8 def root_url @root_url end |