Class: Pokepay::Response::Bill

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ Bill

Returns a new instance of Bill.



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

def initialize(row)
  @id = row["id"]
  @amount = row["amount"]
  @max_amount = row["max_amount"]
  @min_amount = row["min_amount"]
  @description = row["description"]
  @account = AccountWithUser.new(row["account"])
  @is_disabled = row["is_disabled"]
  @token = row["token"]
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



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

def 
  @account
end

#amountObject (readonly)

Returns the value of attribute amount.



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

def amount
  @amount
end

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#is_disabledObject (readonly)

Returns the value of attribute is_disabled.



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

def is_disabled
  @is_disabled
end

#max_amountObject (readonly)

Returns the value of attribute max_amount.



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

def max_amount
  @max_amount
end

#min_amountObject (readonly)

Returns the value of attribute min_amount.



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

def min_amount
  @min_amount
end

#tokenObject (readonly)

Returns the value of attribute token.



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

def token
  @token
end