Class: Chartmogul::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/chartmogul/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration


6
7
8
9
# File 'lib/chartmogul/configuration.rb', line 6

def initialize
  @api_host ||= "https://api.chartmogul.com/v1"
  @response_type ||= :object
end

Instance Attribute Details

#account_tokenObject

Returns the value of attribute account_token


4
5
6
# File 'lib/chartmogul/configuration.rb', line 4

def 
  @account_token
end

#api_hostObject

Returns the value of attribute api_host


3
4
5
# File 'lib/chartmogul/configuration.rb', line 3

def api_host
  @api_host
end

#response_typeObject

Returns the value of attribute response_type


3
4
5
# File 'lib/chartmogul/configuration.rb', line 3

def response_type
  @response_type
end

#secret_keyObject

Returns the value of attribute secret_key


4
5
6
# File 'lib/chartmogul/configuration.rb', line 4

def secret_key
  @secret_key
end

Instance Method Details

#response_klassObject


11
12
13
# File 'lib/chartmogul/configuration.rb', line 11

def response_klass
  response_object || Hash
end