Class: HookBridge::UsageHistoryResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, meta) ⇒ UsageHistoryResponse

Returns a new instance of UsageHistoryResponse.



241
242
243
244
245
246
247
# File 'lib/hookbridge/types.rb', line 241

def initialize(data, meta)
  @rows = (data || []).map { |entry| UsageHistoryRow.new(entry) }
  @total = meta["total"]
  @limit = meta["limit"]
  @offset = meta["offset"]
  @has_more = meta["has_more"]
end

Instance Attribute Details

#has_moreObject (readonly)

Returns the value of attribute has_more.



239
240
241
# File 'lib/hookbridge/types.rb', line 239

def has_more
  @has_more
end

#limitObject (readonly)

Returns the value of attribute limit.



239
240
241
# File 'lib/hookbridge/types.rb', line 239

def limit
  @limit
end

#offsetObject (readonly)

Returns the value of attribute offset.



239
240
241
# File 'lib/hookbridge/types.rb', line 239

def offset
  @offset
end

#rowsObject (readonly)

Returns the value of attribute rows.



239
240
241
# File 'lib/hookbridge/types.rb', line 239

def rows
  @rows
end

#totalObject (readonly)

Returns the value of attribute total.



239
240
241
# File 'lib/hookbridge/types.rb', line 239

def total
  @total
end