Class: HookBridge::InvoicesResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/hookbridge/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, meta)
  @invoices = (data || []).map { |entry| Invoice.new(entry) }
  @has_more = meta["has_more"]
end

Instance Attribute Details

#has_moreObject (readonly)

Returns the value of attribute has_more.



263
264
265
# File 'lib/hookbridge/types.rb', line 263

def has_more
  @has_more
end

#invoicesObject (readonly)

Returns the value of attribute invoices.



263
264
265
# File 'lib/hookbridge/types.rb', line 263

def invoices
  @invoices
end