Class: HookBridge::ListPullEventsResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/hookbridge/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#eventsObject (readonly)

Returns the value of attribute events.



425
426
427
# File 'lib/hookbridge/types.rb', line 425

def events
  @events
end

#has_moreObject (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_cursorObject (readonly)

Returns the value of attribute next_cursor.



425
426
427
# File 'lib/hookbridge/types.rb', line 425

def next_cursor
  @next_cursor
end