Class: Bigbank::Client::Config
- Inherits:
-
Object
- Object
- Bigbank::Client::Config
- Defined in:
- lib/bigbank/client/config.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#enable_proxy ⇒ Object
Returns the value of attribute enable_proxy.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#partner_key ⇒ Object
Returns the value of attribute partner_key.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#verify_ssl ⇒ Object
Returns the value of attribute verify_ssl.
Instance Method Summary collapse
- #enable_proxy? ⇒ Boolean
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 16 17 18 19 20 21 |
# File 'lib/bigbank/client/config.rb', line 13 def initialize @endpoint = "https://ansok.bigbank.se/" @open_timeout = 5 @timeout = 15 @adapter = Faraday.default_adapter @verify_ssl = true @enable_proxy = false @proxy = "" end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
4 5 6 |
# File 'lib/bigbank/client/config.rb', line 4 def adapter @adapter end |
#enable_proxy ⇒ Object
Returns the value of attribute enable_proxy.
4 5 6 |
# File 'lib/bigbank/client/config.rb', line 4 def enable_proxy @enable_proxy end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
4 5 6 |
# File 'lib/bigbank/client/config.rb', line 4 def endpoint @endpoint end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
4 5 6 |
# File 'lib/bigbank/client/config.rb', line 4 def open_timeout @open_timeout end |
#partner_key ⇒ Object
Returns the value of attribute partner_key.
4 5 6 |
# File 'lib/bigbank/client/config.rb', line 4 def partner_key @partner_key end |
#proxy ⇒ Object
Returns the value of attribute proxy.
4 5 6 |
# File 'lib/bigbank/client/config.rb', line 4 def proxy @proxy end |
#timeout ⇒ Object
Returns the value of attribute timeout.
4 5 6 |
# File 'lib/bigbank/client/config.rb', line 4 def timeout @timeout end |
#verify_ssl ⇒ Object
Returns the value of attribute verify_ssl.
4 5 6 |
# File 'lib/bigbank/client/config.rb', line 4 def verify_ssl @verify_ssl end |
Instance Method Details
#enable_proxy? ⇒ Boolean
23 24 25 |
# File 'lib/bigbank/client/config.rb', line 23 def enable_proxy? !!enable_proxy end |