Class: AtPay::Session

Inherits:
Struct
  • Object
show all
Defined in:
lib/atpay/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/atpay/session.rb', line 3

def endpoint
  @endpoint
end

#partner_idObject

Returns the value of attribute partner_id

Returns:

  • (Object)

    the current value of partner_id



2
3
4
# File 'lib/atpay/session.rb', line 2

def partner_id
  @partner_id
end

#private_keyObject

Returns the value of attribute private_key

Returns:

  • (Object)

    the current value of private_key



2
3
4
# File 'lib/atpay/session.rb', line 2

def private_key
  @private_key
end

#public_keyObject

Returns the value of attribute public_key

Returns:

  • (Object)

    the current value of public_key



2
3
4
# File 'lib/atpay/session.rb', line 2

def public_key
  @public_key
end

Instance Method Details

#atpay_public_keyObject



9
10
11
# File 'lib/atpay/session.rb', line 9

def atpay_public_key
  @atpay_public_key || PUBLIC_KEY
end

#atpay_public_key=(atpay_public_key) ⇒ Object



5
6
7
# File 'lib/atpay/session.rb', line 5

def atpay_public_key=(atpay_public_key)
  @atpay_public_key = Base64.decode64(atpay_public_key)
end