Class: HookBridge::LogsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ LogsResponse

Returns a new instance of LogsResponse.



97
98
99
100
101
# File 'lib/hookbridge/types.rb', line 97

def initialize(data)
  @messages = ((data["data"] || data["messages"] || data) || []).map { |entry| MessageSummary.new(entry) }
  @has_more = data["has_more"] || false
  @next_cursor = data["next_cursor"]
end

Instance Attribute Details

#has_moreObject (readonly)

Returns the value of attribute has_more.



95
96
97
# File 'lib/hookbridge/types.rb', line 95

def has_more
  @has_more
end

#messagesObject (readonly)

Returns the value of attribute messages.



95
96
97
# File 'lib/hookbridge/types.rb', line 95

def messages
  @messages
end

#next_cursorObject (readonly)

Returns the value of attribute next_cursor.



95
96
97
# File 'lib/hookbridge/types.rb', line 95

def next_cursor
  @next_cursor
end