Class: Moov::Models::Operations::ListTicketsResponseBody

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/operations/listtickets_responsebody.rb

Overview

A paginated list of items. The ‘nextPage` field is omitted if there are no more pages available.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(items:, next_page: nil) ⇒ ListTicketsResponseBody

Returns a new instance of ListTicketsResponseBody.



22
23
24
25
# File 'lib/moov/models/operations/listtickets_responsebody.rb', line 22

def initialize(items:, next_page: nil)
  @items = items
  @next_page = next_page
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
31
32
33
# File 'lib/moov/models/operations/listtickets_responsebody.rb', line 28

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