Class: Moov::Models::Components::OccurrencesResponse

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(run_on:, run_transfer:, schedule_id: nil, occurrence_id: nil, mode: nil, generated: nil, indefinite: nil, canceled_on: nil, ran_on: nil, ran_transfer_id: nil, status: nil, error: nil) ⇒ OccurrencesResponse

Returns a new instance of OccurrencesResponse.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/moov/models/components/occurrencesresponse.rb', line 42

def initialize(run_on:, run_transfer:, schedule_id: nil, occurrence_id: nil, mode: nil, generated: nil, indefinite: nil, canceled_on: nil, ran_on: nil, ran_transfer_id: nil, status: nil, error: nil)
  @run_on = run_on
  @run_transfer = run_transfer
  @schedule_id = schedule_id
  @occurrence_id = occurrence_id
  @mode = mode
  @generated = generated
  @indefinite = indefinite
  @canceled_on = canceled_on
  @ran_on = ran_on
  @ran_transfer_id = ran_transfer_id
  @status = status
  @error = error
end

Instance Method Details

#==(other) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/moov/models/components/occurrencesresponse.rb', line 58

def ==(other)
  return false unless other.is_a? self.class
  return false unless @run_on == other.run_on
  return false unless @run_transfer == other.run_transfer
  return false unless @schedule_id == other.schedule_id
  return false unless @occurrence_id == other.occurrence_id
  return false unless @mode == other.mode
  return false unless @generated == other.generated
  return false unless @indefinite == other.indefinite
  return false unless @canceled_on == other.canceled_on
  return false unless @ran_on == other.ran_on
  return false unless @ran_transfer_id == other.ran_transfer_id
  return false unless @status == other.status
  return false unless @error == other.error
  true
end