Class: HookBridge::UsageHistoryResponse
- Inherits:
-
Object
- Object
- HookBridge::UsageHistoryResponse
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#has_more ⇒ Object
readonly
Returns the value of attribute has_more.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(data, meta) ⇒ UsageHistoryResponse
constructor
A new instance of UsageHistoryResponse.
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, ) @rows = (data || []).map { |entry| UsageHistoryRow.new(entry) } @total = ["total"] @limit = ["limit"] @offset = ["offset"] @has_more = ["has_more"] end |
Instance Attribute Details
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
239 240 241 |
# File 'lib/hookbridge/types.rb', line 239 def has_more @has_more end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
239 240 241 |
# File 'lib/hookbridge/types.rb', line 239 def limit @limit end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
239 240 241 |
# File 'lib/hookbridge/types.rb', line 239 def offset @offset end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
239 240 241 |
# File 'lib/hookbridge/types.rb', line 239 def rows @rows end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
239 240 241 |
# File 'lib/hookbridge/types.rb', line 239 def total @total end |