Class: AtPay::Session
- Inherits:
-
Struct
- Object
- Struct
- AtPay::Session
- Defined in:
- lib/atpay/session.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
Instance Method Summary collapse
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/atpay/session.rb', line 3 def endpoint @endpoint end |
#partner_id ⇒ Object
Returns the value of attribute partner_id
2 3 4 |
# File 'lib/atpay/session.rb', line 2 def partner_id @partner_id end |
#private_key ⇒ Object
Returns the value of attribute private_key
2 3 4 |
# File 'lib/atpay/session.rb', line 2 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key
2 3 4 |
# File 'lib/atpay/session.rb', line 2 def public_key @public_key end |
Instance Method Details
#atpay_public_key ⇒ Object
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 |