Class: Relax::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/relax/config.rb

Constant Summary collapse

USER_AGENT =
"Relax Ruby Gem Client #{Relax::VERSION}"
TIMEOUT =
60

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



13
14
15
16
17
# File 'lib/relax/config.rb', line 13

def initialize
  self.adapter = Faraday.default_adapter
  self.user_agent = USER_AGENT
  self.timeout = TIMEOUT
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



8
9
10
# File 'lib/relax/config.rb', line 8

def adapter
  @adapter
end

#base_uriObject

Returns the value of attribute base_uri.



9
10
11
# File 'lib/relax/config.rb', line 9

def base_uri
  @base_uri
end

#timeoutObject

Returns the value of attribute timeout.



10
11
12
# File 'lib/relax/config.rb', line 10

def timeout
  @timeout
end

#user_agentObject

Returns the value of attribute user_agent.



11
12
13
# File 'lib/relax/config.rb', line 11

def user_agent
  @user_agent
end