Module: ArmoryApi::Default
- Defined in:
- lib/armory_api/default.rb
Constant Summary collapse
- REGION =
'us'
- LOCALE =
'en_US'
- CONNECTION_OPTIONS =
{ headers: { user_agent: "ArmoryApi Ruby Gem (#{ArmoryApi::Version})" }, raw: true, timeout: 10 }
- MIDDLEWARE =
Faraday::Builder.new( &Proc.new do |builder| builder.adapter Faraday.default_adapter end )
Class Method Summary collapse
Class Method Details
.connection_options ⇒ Object
36 37 38 |
# File 'lib/armory_api/default.rb', line 36 def CONNECTION_OPTIONS end |
.locale ⇒ Object
32 33 34 |
# File 'lib/armory_api/default.rb', line 32 def locale LOCALE end |
.middleware ⇒ Object
40 41 42 |
# File 'lib/armory_api/default.rb', line 40 def middleware MIDDLEWARE end |
.options ⇒ Hash
24 25 26 |
# File 'lib/armory_api/default.rb', line 24 def Hash[ArmoryApi::Configurable.keys.each.map{|k| [k, send(k)]}] end |
.region ⇒ Object
28 29 30 |
# File 'lib/armory_api/default.rb', line 28 def region REGION end |