Class: HookBridge::PullLogsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ PullLogsResponse

Returns a new instance of PullLogsResponse.



448
449
450
451
452
# File 'lib/hookbridge/types.rb', line 448

def initialize(data)
  @entries = (data["data"] || data || []).map { |entry| PullLogEntry.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.



446
447
448
# File 'lib/hookbridge/types.rb', line 446

def entries
  @entries
end

#has_moreObject (readonly)

Returns the value of attribute has_more.



446
447
448
# File 'lib/hookbridge/types.rb', line 446

def has_more
  @has_more
end

#next_cursorObject (readonly)

Returns the value of attribute next_cursor.



446
447
448
# File 'lib/hookbridge/types.rb', line 446

def next_cursor
  @next_cursor
end