Class: Bigbank::Client::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#adapterObject

Returns the value of attribute adapter.



4
5
6
# File 'lib/bigbank/client/config.rb', line 4

def adapter
  @adapter
end

#enable_proxyObject

Returns the value of attribute enable_proxy.



4
5
6
# File 'lib/bigbank/client/config.rb', line 4

def enable_proxy
  @enable_proxy
end

#endpointObject

Returns the value of attribute endpoint.



4
5
6
# File 'lib/bigbank/client/config.rb', line 4

def endpoint
  @endpoint
end

#open_timeoutObject

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_keyObject

Returns the value of attribute partner_key.



4
5
6
# File 'lib/bigbank/client/config.rb', line 4

def partner_key
  @partner_key
end

#proxyObject

Returns the value of attribute proxy.



4
5
6
# File 'lib/bigbank/client/config.rb', line 4

def proxy
  @proxy
end

#timeoutObject

Returns the value of attribute timeout.



4
5
6
# File 'lib/bigbank/client/config.rb', line 4

def timeout
  @timeout
end

#verify_sslObject

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

Returns:

  • (Boolean)


23
24
25
# File 'lib/bigbank/client/config.rb', line 23

def enable_proxy?
  !!enable_proxy
end