Class: HookBridge::InboundLogsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#entriesObject (readonly)

Returns the value of attribute entries.



462
463
464
# File 'lib/hookbridge/types.rb', line 462

def entries
  @entries
end

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

Returns the value of attribute next_cursor.



462
463
464
# File 'lib/hookbridge/types.rb', line 462

def next_cursor
  @next_cursor
end