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.
253 254 255 256 |
# File 'lib/hookbridge/types.rb', line 253 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.
251 252 253 |
# File 'lib/hookbridge/types.rb', line 251 def has_more @has_more end |
#invoices ⇒ Object (readonly)
Returns the value of attribute invoices.
251 252 253 |
# File 'lib/hookbridge/types.rb', line 251 def invoices @invoices end |