Class: VirtualMerchant::Credentials
- Inherits:
-
Object
- Object
- VirtualMerchant::Credentials
- Defined in:
- lib/virtual_merchant/credentials.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#demo ⇒ Object
Returns the value of attribute demo.
-
#device_type ⇒ Object
Returns the value of attribute device_type.
-
#ksn ⇒ Object
Returns the value of attribute ksn.
-
#pin ⇒ Object
Returns the value of attribute pin.
-
#referer ⇒ Object
Returns the value of attribute referer.
-
#source ⇒ Object
Returns the value of attribute source.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#vendor_id ⇒ Object
Returns the value of attribute vendor_id.
Instance Method Summary collapse
-
#initialize(info) ⇒ Credentials
constructor
A new instance of Credentials.
Constructor Details
#initialize(info) ⇒ Credentials
Returns a new instance of Credentials.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/virtual_merchant/credentials.rb', line 5 def initialize(info) @account_id = info[:account_id].to_s @user_id = info[:user_id].to_s @pin = info[:pin].to_s @source = info[:source].to_s @ksn = info[:ksn].to_s @vendor_id = info[:vendor_id].to_s @device_type = info[:device_type].to_s @referer = info[:referer].to_s @demo = info[:demo] || false end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def account_id @account_id end |
#demo ⇒ Object
Returns the value of attribute demo.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def demo @demo end |
#device_type ⇒ Object
Returns the value of attribute device_type.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def device_type @device_type end |
#ksn ⇒ Object
Returns the value of attribute ksn.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def ksn @ksn end |
#pin ⇒ Object
Returns the value of attribute pin.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def pin @pin end |
#referer ⇒ Object
Returns the value of attribute referer.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def referer @referer end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def source @source end |
#user_id ⇒ Object
Returns the value of attribute user_id.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def user_id @user_id end |
#vendor_id ⇒ Object
Returns the value of attribute vendor_id.
3 4 5 |
# File 'lib/virtual_merchant/credentials.rb', line 3 def vendor_id @vendor_id end |