Class: HookBridge::InboundLogsResponse
- Inherits:
-
Object
- Object
- HookBridge::InboundLogsResponse
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#has_more ⇒ Object
readonly
Returns the value of attribute has_more.
-
#next_cursor ⇒ Object
readonly
Returns the value of attribute next_cursor.
Instance Method Summary collapse
-
#initialize(data) ⇒ InboundLogsResponse
constructor
A new instance of InboundLogsResponse.
Constructor Details
#initialize(data) ⇒ InboundLogsResponse
Returns a new instance of InboundLogsResponse.
464 465 466 467 468 |
# File 'lib/hookbridge/types.rb', line 464 def initialize(data) @entries = (data["data"] || data || []).map { |entry| InboundLogEntry.new(entry) } @has_more = data["has_more"] || false @next_cursor = data["next_cursor"] end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
462 463 464 |
# File 'lib/hookbridge/types.rb', line 462 def entries @entries end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
462 463 464 |
# File 'lib/hookbridge/types.rb', line 462 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
462 463 464 |
# File 'lib/hookbridge/types.rb', line 462 def next_cursor @next_cursor end |