Class: Clerk::Models::Components::LogList

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/log_list.rb

Overview

A list of log entries with cursor-based pagination.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(data:, cursor: nil) ⇒ LogList

Returns a new instance of LogList.



24
25
26
27
# File 'lib/clerk/models/components/log_list.rb', line 24

def initialize(data:, cursor: nil)
  @data = data
  @cursor = cursor
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
# File 'lib/clerk/models/components/log_list.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @data == other.data
  return false unless @cursor == other.cursor
  true
end