Class: Pokepay::Response::Cashtray

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ Cashtray

Returns a new instance of Cashtray.



7
8
9
10
11
12
13
14
15
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 7

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"]
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



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

def 
  @account
end

#amountObject (readonly)

Returns the value of attribute amount.



17
18
19
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 17

def amount
  @amount
end

#canceled_atObject (readonly)

Returns the value of attribute canceled_at.



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

def canceled_at
  @canceled_at
end

#descriptionObject (readonly)

Returns the value of attribute description.



18
19
20
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 18

def description
  @description
end

#expires_atObject (readonly)

Returns the value of attribute expires_at.



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

def expires_at
  @expires_at
end

#idObject (readonly)

Returns the value of attribute id.



16
17
18
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 16

def id
  @id
end

#tokenObject (readonly)

Returns the value of attribute token.



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

def token
  @token
end