Class: Clerk::Models::Components::LogListCursor

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

Overview

Cursor information for pagination.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(has_next_page: nil, next_page_status: nil, retention_limit_reached: nil, retention_days: nil, retention_floor: nil, searched_from: nil, searched_to: nil, starting_after: nil, ending_before: nil) ⇒ LogListCursor

Returns a new instance of LogListCursor.



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/clerk/models/components/log_list_cursor.rb', line 43

def initialize(has_next_page: nil, next_page_status: nil, retention_limit_reached: nil, retention_days: nil, retention_floor: nil, searched_from: nil, searched_to: nil, starting_after: nil, ending_before: nil)
  @has_next_page = has_next_page
  @next_page_status = next_page_status
  @retention_limit_reached = retention_limit_reached
  @retention_days = retention_days
  @retention_floor = retention_floor
  @searched_from = searched_from
  @searched_to = searched_to
  @starting_after = starting_after
  @ending_before = ending_before
end

Instance Method Details

#==(other) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/clerk/models/components/log_list_cursor.rb', line 56

def ==(other)
  return false unless other.is_a? self.class
  return false unless @has_next_page == other.has_next_page
  return false unless @next_page_status == other.next_page_status
  return false unless @retention_limit_reached == other.retention_limit_reached
  return false unless @retention_days == other.retention_days
  return false unless @retention_floor == other.retention_floor
  return false unless @searched_from == other.searched_from
  return false unless @searched_to == other.searched_to
  return false unless @starting_after == other.starting_after
  return false unless @ending_before == other.ending_before
  true
end