Class: Stash::Rewards::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/stash/rewards/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Config

Returns a new instance of Config.



8
9
10
11
12
# File 'lib/stash/rewards/config.rb', line 8

def initialize(options = {})
  @api_key = options[:api_key]
  @authorization = options[:authorization]
  @api_domain = options[:api_domain]
end

Instance Attribute Details

#api_domainObject (readonly)

Returns the value of attribute api_domain.



6
7
8
# File 'lib/stash/rewards/config.rb', line 6

def api_domain
  @api_domain
end

#api_keyObject (readonly)

Returns the value of attribute api_key.



6
7
8
# File 'lib/stash/rewards/config.rb', line 6

def api_key
  @api_key
end

#authorizationObject (readonly)

Returns the value of attribute authorization.



6
7
8
# File 'lib/stash/rewards/config.rb', line 6

def authorization
  @authorization
end