Class: Moov::Models::Components::Occurrence

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

Overview

Occurrences to either create or modify.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(canceled: nil, occurrence_id: nil, run_on: nil, run_transfer: nil) ⇒ Occurrence

Returns a new instance of Occurrence.



27
28
29
30
31
32
# File 'lib/moov/models/components/occurrence.rb', line 27

def initialize(canceled: nil, occurrence_id: nil, run_on: nil, run_transfer: nil)
  @canceled = canceled
  @occurrence_id = occurrence_id
  @run_on = run_on
  @run_transfer = run_transfer
end

Instance Method Details

#==(other) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/moov/models/components/occurrence.rb', line 35

def ==(other)
  return false unless other.is_a? self.class
  return false unless @canceled == other.canceled
  return false unless @occurrence_id == other.occurrence_id
  return false unless @run_on == other.run_on
  return false unless @run_transfer == other.run_transfer
  true
end