Class: PscbIntegration::Config
- Inherits:
-
Object
- Object
- PscbIntegration::Config
- Defined in:
- lib/pscb_integration/config.rb
Instance Attribute Summary collapse
-
#confirm_payment_callback ⇒ Object
Returns the value of attribute confirm_payment_callback.
-
#demo_secret_key ⇒ Object
Returns the value of attribute demo_secret_key.
-
#host ⇒ Object
Returns the value of attribute host.
-
#market_place ⇒ Object
Returns the value of attribute market_place.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Config
constructor
A new instance of Config.
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_callback ⇒ Object
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_key ⇒ Object
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 |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/pscb_integration/config.rb', line 3 def host @host end |
#market_place ⇒ Object
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_key ⇒ Object
Returns the value of attribute secret_key.
3 4 5 |
# File 'lib/pscb_integration/config.rb', line 3 def secret_key @secret_key end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/pscb_integration/config.rb', line 3 def timeout @timeout end |