Class: HookBridge::ListPullEventsResponse
- Inherits:
-
Object
- Object
- HookBridge::ListPullEventsResponse
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#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) ⇒ ListPullEventsResponse
constructor
A new instance of ListPullEventsResponse.
Constructor Details
#initialize(data) ⇒ ListPullEventsResponse
Returns a new instance of ListPullEventsResponse.
427 428 429 430 431 |
# File 'lib/hookbridge/types.rb', line 427 def initialize(data) @events = (data["data"] || data || []).map { |entry| PullEventSummary.new(entry) } @has_more = data["has_more"] || false @next_cursor = data["next_cursor"] end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
425 426 427 |
# File 'lib/hookbridge/types.rb', line 425 def events @events end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
425 426 427 |
# File 'lib/hookbridge/types.rb', line 425 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
425 426 427 |
# File 'lib/hookbridge/types.rb', line 425 def next_cursor @next_cursor end |