Class: Bitcointerminal::Configuration
- Inherits:
-
Object
- Object
- Bitcointerminal::Configuration
- Defined in:
- lib/bitcointerminal/configurable.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#audience ⇒ Object
Returns the value of attribute audience.
-
#authorization_token ⇒ Object
bearer.
-
#client_id ⇒ Object
oauth / jwt tokens.
-
#client_secret ⇒ Object
oauth / jwt tokens.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#debug_connection ⇒ Object
Returns the value of attribute debug_connection.
-
#grant_type ⇒ Object
Returns the value of attribute grant_type.
-
#rest_open_timeout ⇒ Object
Returns the value of attribute rest_open_timeout.
-
#rest_timeout ⇒ Object
Returns the value of attribute rest_timeout.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#token_url ⇒ Object
Returns the value of attribute token_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
33 34 35 36 37 38 39 |
# File 'lib/bitcointerminal/configurable.rb', line 33 def initialize self.debug = false self.rest_timeout = 30 self.rest_open_timeout = 30 self.debug_connection = false self.api_version = 1 end |
Instance Attribute Details
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
23 24 25 |
# File 'lib/bitcointerminal/configurable.rb', line 23 def api_endpoint @api_endpoint end |
#api_key ⇒ Object
Returns the value of attribute api_key.
24 25 26 |
# File 'lib/bitcointerminal/configurable.rb', line 24 def api_key @api_key end |
#api_version ⇒ Object
Returns the value of attribute api_version.
26 27 28 |
# File 'lib/bitcointerminal/configurable.rb', line 26 def api_version @api_version end |
#audience ⇒ Object
Returns the value of attribute audience.
29 30 31 |
# File 'lib/bitcointerminal/configurable.rb', line 29 def audience @audience end |
#authorization_token ⇒ Object
bearer
31 32 33 |
# File 'lib/bitcointerminal/configurable.rb', line 31 def end |
#client_id ⇒ Object
oauth / jwt tokens
28 29 30 |
# File 'lib/bitcointerminal/configurable.rb', line 28 def client_id @client_id end |
#client_secret ⇒ Object
oauth / jwt tokens
28 29 30 |
# File 'lib/bitcointerminal/configurable.rb', line 28 def client_secret @client_secret end |
#debug ⇒ Object
Returns the value of attribute debug.
23 24 25 |
# File 'lib/bitcointerminal/configurable.rb', line 23 def debug @debug end |
#debug_connection ⇒ Object
Returns the value of attribute debug_connection.
23 24 25 |
# File 'lib/bitcointerminal/configurable.rb', line 23 def debug_connection @debug_connection end |
#grant_type ⇒ Object
Returns the value of attribute grant_type.
29 30 31 |
# File 'lib/bitcointerminal/configurable.rb', line 29 def grant_type @grant_type end |
#rest_open_timeout ⇒ Object
Returns the value of attribute rest_open_timeout.
25 26 27 |
# File 'lib/bitcointerminal/configurable.rb', line 25 def rest_open_timeout @rest_open_timeout end |
#rest_timeout ⇒ Object
Returns the value of attribute rest_timeout.
25 26 27 |
# File 'lib/bitcointerminal/configurable.rb', line 25 def rest_timeout @rest_timeout end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
24 25 26 |
# File 'lib/bitcointerminal/configurable.rb', line 24 def secret_key @secret_key end |
#token_url ⇒ Object
Returns the value of attribute token_url.
29 30 31 |
# File 'lib/bitcointerminal/configurable.rb', line 29 def token_url @token_url end |