Class: Moov::Models::Components::GuestProfile

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

Overview

Describes a guest account profile.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name:, phone: nil, email: nil) ⇒ GuestProfile

Returns a new instance of GuestProfile.



25
26
27
28
29
# File 'lib/moov/models/components/guestprofile.rb', line 25

def initialize(name:, phone: nil, email: nil)
  @name = name
  @phone = phone
  @email = email
end

Instance Method Details

#==(other) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/moov/models/components/guestprofile.rb', line 32

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @phone == other.phone
  return false unless @email == other.email
  true
end