Class: Pokepay::Response::CpmToken

Inherits:
Object
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/cpm_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accountObject (readonly)

Returns the value of attribute account.



19
20
21
# File 'lib/pokepay_partner_ruby_sdk/response/cpm_token.rb', line 19

def 
  @account
end

#cpm_tokenObject (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

#eventObject (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_atObject (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

#metadataObject (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

#scopesObject (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

#transactionObject (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