Class: VirtualMerchant::Credentials

Inherits:
Object
  • Object
show all
Defined in:
lib/virtual_merchant/credentials.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute account_id.



3
4
5
# File 'lib/virtual_merchant/credentials.rb', line 3

def 
  @account_id
end

#demoObject

Returns the value of attribute demo.



3
4
5
# File 'lib/virtual_merchant/credentials.rb', line 3

def demo
  @demo
end

#device_typeObject

Returns the value of attribute device_type.



3
4
5
# File 'lib/virtual_merchant/credentials.rb', line 3

def device_type
  @device_type
end

#ksnObject

Returns the value of attribute ksn.



3
4
5
# File 'lib/virtual_merchant/credentials.rb', line 3

def ksn
  @ksn
end

#pinObject

Returns the value of attribute pin.



3
4
5
# File 'lib/virtual_merchant/credentials.rb', line 3

def pin
  @pin
end

#refererObject

Returns the value of attribute referer.



3
4
5
# File 'lib/virtual_merchant/credentials.rb', line 3

def referer
  @referer
end

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/virtual_merchant/credentials.rb', line 3

def source
  @source
end

#user_idObject

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_idObject

Returns the value of attribute vendor_id.



3
4
5
# File 'lib/virtual_merchant/credentials.rb', line 3

def vendor_id
  @vendor_id
end