Class: Clientele::Configuration

Inherits:
BlockParty::Configuration
  • Object
show all
Defined in:
lib/clientele/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#adapterObject

Returns the value of attribute adapter.



8
9
10
# File 'lib/clientele/configuration.rb', line 8

def adapter
  @adapter
end

#follow_redirectsObject

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_typeObject

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

#headersObject

Returns the value of attribute headers.



8
9
10
# File 'lib/clientele/configuration.rb', line 8

def headers
  @headers
end

#loggerObject

Returns the value of attribute logger.



8
9
10
# File 'lib/clientele/configuration.rb', line 8

def logger
  @logger
end

#redirect_limitObject

Returns the value of attribute redirect_limit.



8
9
10
# File 'lib/clientele/configuration.rb', line 8

def redirect_limit
  @redirect_limit
end

#root_urlObject

Returns the value of attribute root_url.



8
9
10
# File 'lib/clientele/configuration.rb', line 8

def root_url
  @root_url
end