Class: Stash::Rewards::Config
- Inherits:
-
Object
- Object
- Stash::Rewards::Config
- Defined in:
- lib/stash/rewards/config.rb
Instance Attribute Summary collapse
-
#api_domain ⇒ Object
readonly
Returns the value of attribute api_domain.
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#authorization ⇒ Object
readonly
Returns the value of attribute authorization.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
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( = {}) @api_key = [:api_key] @authorization = [:authorization] @api_domain = [:api_domain] end |
Instance Attribute Details
#api_domain ⇒ Object (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_key ⇒ Object (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 |
#authorization ⇒ Object (readonly)
Returns the value of attribute authorization.
6 7 8 |
# File 'lib/stash/rewards/config.rb', line 6 def @authorization end |