Class: Bitcointerminal::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/bitcointerminal/configurable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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_endpointObject

Returns the value of attribute api_endpoint.



23
24
25
# File 'lib/bitcointerminal/configurable.rb', line 23

def api_endpoint
  @api_endpoint
end

#api_keyObject

Returns the value of attribute api_key.



24
25
26
# File 'lib/bitcointerminal/configurable.rb', line 24

def api_key
  @api_key
end

#api_versionObject

Returns the value of attribute api_version.



26
27
28
# File 'lib/bitcointerminal/configurable.rb', line 26

def api_version
  @api_version
end

#audienceObject

Returns the value of attribute audience.



29
30
31
# File 'lib/bitcointerminal/configurable.rb', line 29

def audience
  @audience
end

#authorization_tokenObject

bearer



31
32
33
# File 'lib/bitcointerminal/configurable.rb', line 31

def authorization_token
  @authorization_token
end

#client_idObject

oauth / jwt tokens



28
29
30
# File 'lib/bitcointerminal/configurable.rb', line 28

def client_id
  @client_id
end

#client_secretObject

oauth / jwt tokens



28
29
30
# File 'lib/bitcointerminal/configurable.rb', line 28

def client_secret
  @client_secret
end

#debugObject

Returns the value of attribute debug.



23
24
25
# File 'lib/bitcointerminal/configurable.rb', line 23

def debug
  @debug
end

#debug_connectionObject

Returns the value of attribute debug_connection.



23
24
25
# File 'lib/bitcointerminal/configurable.rb', line 23

def debug_connection
  @debug_connection
end

#grant_typeObject

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_timeoutObject

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_timeoutObject

Returns the value of attribute rest_timeout.



25
26
27
# File 'lib/bitcointerminal/configurable.rb', line 25

def rest_timeout
  @rest_timeout
end

#secret_keyObject

Returns the value of attribute secret_key.



24
25
26
# File 'lib/bitcointerminal/configurable.rb', line 24

def secret_key
  @secret_key
end

#token_urlObject

Returns the value of attribute token_url.



29
30
31
# File 'lib/bitcointerminal/configurable.rb', line 29

def token_url
  @token_url
end