Class: Pokepay::Response::CashtrayWithResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ CashtrayWithResult

Returns a new instance of CashtrayWithResult.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 9

def initialize(row)
  @id = row["id"]
  @amount = row["amount"]
  @description = row["description"]
  @account = AccountWithUser.new(row["account"])
  @expires_at = row["expires_at"]
  @canceled_at = row["canceled_at"]
  @token = row["token"]
  @attempt = row["attempt"] and CashtrayAttempt.new(row["attempt"])
  @transaction = row["transaction"] and Transaction.new(row["transaction"])
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



23
24
25
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 23

def 
  @account
end

#amountObject (readonly)

Returns the value of attribute amount.



21
22
23
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 21

def amount
  @amount
end

#attemptObject (readonly)

Returns the value of attribute attempt.



27
28
29
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 27

def attempt
  @attempt
end

#canceled_atObject (readonly)

Returns the value of attribute canceled_at.



25
26
27
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 25

def canceled_at
  @canceled_at
end

#descriptionObject (readonly)

Returns the value of attribute description.



22
23
24
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 22

def description
  @description
end

#expires_atObject (readonly)

Returns the value of attribute expires_at.



24
25
26
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 24

def expires_at
  @expires_at
end

#idObject (readonly)

Returns the value of attribute id.



20
21
22
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 20

def id
  @id
end

#tokenObject (readonly)

Returns the value of attribute token.



26
27
28
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 26

def token
  @token
end

#transactionObject (readonly)

Returns the value of attribute transaction.



28
29
30
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 28

def transaction
  @transaction
end