Class: Jackpot::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_optionsObject

Returns the value of attribute default_options.



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

def default_options
  @default_options
end

#gatewayObject

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] =  
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