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.



229
230
231
232
233
234
235
# File 'lib/hookbridge/types.rb', line 229

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.



227
228
229
# File 'lib/hookbridge/types.rb', line 227

def has_more
  @has_more
end

#limitObject (readonly)

Returns the value of attribute limit.



227
228
229
# File 'lib/hookbridge/types.rb', line 227

def limit
  @limit
end

#offsetObject (readonly)

Returns the value of attribute offset.



227
228
229
# File 'lib/hookbridge/types.rb', line 227

def offset
  @offset
end

#rowsObject (readonly)

Returns the value of attribute rows.



227
228
229
# File 'lib/hookbridge/types.rb', line 227

def rows
  @rows
end

#totalObject (readonly)

Returns the value of attribute total.



227
228
229
# File 'lib/hookbridge/types.rb', line 227

def total
  @total
end