Class: Jackpot::Configuration
- Inherits:
-
Object
- Object
- Jackpot::Configuration
- Defined in:
- lib/jackpot/configuration.rb
Instance Attribute Summary collapse
-
#default_options ⇒ Object
Returns the value of attribute default_options.
-
#gateway ⇒ Object
Returns the value of attribute gateway.
Instance Method Summary collapse
- #gateway_login(login) ⇒ Object
- #gateway_mode(mode) ⇒ Object
- #gateway_password(password) ⇒ Object
- #gateway_type(gateway) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 |
# File 'lib/jackpot/configuration.rb', line 8 def initialize @gateway = HashWithIndifferentAccess.new end |
Instance Attribute Details
#default_options ⇒ Object
Returns the value of attribute default_options.
5 6 7 |
# File 'lib/jackpot/configuration.rb', line 5 def @default_options end |
#gateway ⇒ Object
Returns the value of attribute gateway.
6 7 8 |
# File 'lib/jackpot/configuration.rb', line 6 def gateway @gateway end |
Instance Method Details
#gateway_login(login) ⇒ Object
18 19 20 |
# File 'lib/jackpot/configuration.rb', line 18 def gateway_login(login) @gateway[:login] = login end |
#gateway_mode(mode) ⇒ Object
27 28 29 |
# File 'lib/jackpot/configuration.rb', line 27 def gateway_mode(mode) @gateway[:mode] = mode end |
#gateway_password(password) ⇒ Object
23 24 25 |
# File 'lib/jackpot/configuration.rb', line 23 def gateway_password(password) @gateway[:password] = password end |
#gateway_type(gateway) ⇒ Object
13 14 15 |
# File 'lib/jackpot/configuration.rb', line 13 def gateway_type(gateway) @gateway[:type] = gateway end |