Class: Pokepay::Response::CpmToken
- Inherits:
-
Object
- Object
- Pokepay::Response::CpmToken
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/cpm_token.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#cpm_token ⇒ Object
readonly
Returns the value of attribute cpm_token.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
Instance Method Summary collapse
-
#initialize(row) ⇒ CpmToken
constructor
A new instance of CpmToken.
Constructor Details
#initialize(row) ⇒ CpmToken
Returns a new instance of CpmToken.
9 10 11 12 13 14 15 16 17 |
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 9 def initialize(row) @cpm_token = row["cpm_token"] @account = AccountDetail.new(row["account"]) @transaction = row["transaction"] and Transaction.new(row["transaction"]) @event = row["event"] and ExternalTransaction.new(row["event"]) @scopes = row["scopes"] @expires_at = row["expires_at"] @metadata = row["metadata"] end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
19 20 21 |
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 19 def account @account end |
#cpm_token ⇒ Object (readonly)
Returns the value of attribute cpm_token.
18 19 20 |
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 18 def cpm_token @cpm_token end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
21 22 23 |
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 21 def event @event end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
23 24 25 |
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 23 def expires_at @expires_at end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
24 25 26 |
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 24 def @metadata end |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
22 23 24 |
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 22 def scopes @scopes end |
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction.
20 21 22 |
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 20 def transaction @transaction end |