Class: Webirr::Bill
- Inherits:
-
Object
- Object
- Webirr::Bill
- Defined in:
- lib/webirr/bill.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#bill_reference ⇒ Object
Returns the value of attribute bill_reference.
-
#customer_code ⇒ Object
Returns the value of attribute customer_code.
-
#customer_name ⇒ Object
Returns the value of attribute customer_name.
-
#customer_phone ⇒ Object
Returns the value of attribute customer_phone.
-
#description ⇒ Object
Returns the value of attribute description.
-
#extras ⇒ Object
Returns the value of attribute extras.
-
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def amount @amount end |
#bill_reference ⇒ Object
Returns the value of attribute bill_reference.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def bill_reference @bill_reference end |
#customer_code ⇒ Object
Returns the value of attribute customer_code.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def customer_code @customer_code end |
#customer_name ⇒ Object
Returns the value of attribute customer_name.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def customer_name @customer_name end |
#customer_phone ⇒ Object
Returns the value of attribute customer_phone.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def customer_phone @customer_phone end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def description @description end |
#extras ⇒ Object
Returns the value of attribute extras.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def extras @extras end |
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def merchant_id @merchant_id end |
#time ⇒ Object
Returns the value of attribute time.
7 8 9 |
# File 'lib/webirr/bill.rb', line 7 def time @time end |
Instance Method Details
#as_json(_options = {}) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/webirr/bill.rb', line 17 def as_json( = {}) { customerCode: @customer_code, customerName: @customer_name, customerPhone: @customer_phone, amount: @amount, description: @description, billReference: @bill_reference, merchantID: @merchant_id, time: @time, extras: @extras } end |
#to_json(*options) ⇒ Object
31 32 33 |
# File 'lib/webirr/bill.rb', line 31 def to_json(*) as_json(*).to_json(*) end |