Class: PscbIntegration::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Config



6
7
8
9
10
11
12
# File 'lib/pscb_integration/config.rb', line 6

def initialize(attrs = {})
  attrs.each do |name, value|
    public_send("#{name}=", value)
  end

  self.timeout ||= 5
end

Instance Attribute Details

#confirm_payment_callbackObject

Returns the value of attribute confirm_payment_callback.



3
4
5
# File 'lib/pscb_integration/config.rb', line 3

def confirm_payment_callback
  @confirm_payment_callback
end

#demo_secret_keyObject

Returns the value of attribute demo_secret_key.



3
4
5
# File 'lib/pscb_integration/config.rb', line 3

def demo_secret_key
  @demo_secret_key
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/pscb_integration/config.rb', line 3

def host
  @host
end

#market_placeObject

Returns the value of attribute market_place.



3
4
5
# File 'lib/pscb_integration/config.rb', line 3

def market_place
  @market_place
end

#secret_keyObject

Returns the value of attribute secret_key.



3
4
5
# File 'lib/pscb_integration/config.rb', line 3

def secret_key
  @secret_key
end

#timeoutObject

Returns the value of attribute timeout.



3
4
5
# File 'lib/pscb_integration/config.rb', line 3

def timeout
  @timeout
end