Class: Clerk::Models::Components::DirectoryGroupMemberListCursor

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/directorygroupmember_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:, starting_after: nil, ending_before: nil) ⇒ DirectoryGroupMemberListCursor

Returns a new instance of DirectoryGroupMemberListCursor.



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

def initialize(has_next_page:, starting_after: nil, ending_before: nil)
  @has_next_page = has_next_page
  @starting_after = starting_after
  @ending_before = ending_before
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @has_next_page == other.has_next_page
  return false unless @starting_after == other.starting_after
  return false unless @ending_before == other.ending_before
  true
end