Class: BunqRb::InvoiceByUser
- Inherits:
-
Object
- Object
- BunqRb::InvoiceByUser
- Includes:
- Shared
- Defined in:
- lib/bunq_rb/objects/invoice_by_user.rb
Overview
InvoiceByUser
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#invoice_number ⇒ Object
readonly
Returns the value of attribute invoice_number.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hsh = {}) ⇒ InvoiceByUser
constructor
A new instance of InvoiceByUser.
Constructor Details
#initialize(hsh = {}) ⇒ InvoiceByUser
Returns a new instance of InvoiceByUser.
10 11 12 13 14 |
# File 'lib/bunq_rb/objects/invoice_by_user.rb', line 10 def initialize(hsh = {}) @id = hsh["id"] @invoice_number = hsh["invoice_number"] @status = hsh["status"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/bunq_rb/objects/invoice_by_user.rb', line 8 def id @id end |
#invoice_number ⇒ Object (readonly)
Returns the value of attribute invoice_number.
8 9 10 |
# File 'lib/bunq_rb/objects/invoice_by_user.rb', line 8 def invoice_number @invoice_number end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/bunq_rb/objects/invoice_by_user.rb', line 8 def status @status end |
Class Method Details
.url(user_id) ⇒ Object
16 17 18 |
# File 'lib/bunq_rb/objects/invoice_by_user.rb', line 16 def self.url(user_id) "/v1/user/#{user_id}/invoice" end |