Class: DiscountNetwork::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
# File 'lib/discountnetwork/configuration.rb', line 5

def initialize
  @api_host ||= "https://api.discountnetwork.io/api/v1"
end

Instance Attribute Details

#api_hostObject

Returns the value of attribute api_host.



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

def api_host
  @api_host
end

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#auth_tokenObject

Returns the value of attribute auth_token.



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

def auth_token
  @auth_token
end