Class: Moov::Models::Components::EventType

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

Overview

Describes an available event type that can be subscribed to.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(event_type_id:, type:, description:) ⇒ EventType

Returns a new instance of EventType.



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

def initialize(event_type_id:, type:, description:)
  @event_type_id = event_type_id
  @type = type
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @event_type_id == other.event_type_id
  return false unless @type == other.type
  return false unless @description == other.description
  true
end