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.
415 416 417 418 419 |
# File 'lib/hookbridge/types.rb', line 415 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.
413 414 415 |
# File 'lib/hookbridge/types.rb', line 413 def events @events end |
#has_more ⇒ Object (readonly)
Returns the value of attribute has_more.
413 414 415 |
# File 'lib/hookbridge/types.rb', line 413 def has_more @has_more end |
#next_cursor ⇒ Object (readonly)
Returns the value of attribute next_cursor.
413 414 415 |
# File 'lib/hookbridge/types.rb', line 413 def next_cursor @next_cursor end |