Class: HookBridge::InvoicesResponse
- Inherits:
-
Object
- Object
- HookBridge::InvoicesResponse
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#has_more ⇒ Object
readonly
Returns the value of attribute has_more.
-
#invoices ⇒ Object
readonly
Returns the value of attribute invoices.
Instance Method Summary collapse
-
#initialize(data, meta) ⇒ InvoicesResponse
constructor
A new instance of InvoicesResponse.
Constructor Details
#initialize(data, meta) ⇒ InvoicesResponse
Returns a new instance of InvoicesResponse.
265 266 267 268 |
# File 'lib/hookbridge/types.rb', line 265 def initialize(data, ) @invoices = (data || []).map { |entry| Invoice.new(entry) } @has_more = ["has_more"] end |
Instance Attribute Details
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
263 264 265 |
# File 'lib/hookbridge/types.rb', line 263 def has_more @has_more end |
#invoices ⇒ Object (readonly)
Returns the value of attribute invoices.
263 264 265 |
# File 'lib/hookbridge/types.rb', line 263 def invoices @invoices end |