Class: Moov::Models::Components::Contact
- Inherits:
-
Object
- Object
- Moov::Models::Components::Contact
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/contact.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(phone: nil) ⇒ Contact
constructor
A new instance of Contact.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(phone: nil) ⇒ Contact
Returns a new instance of Contact.
20 21 22 |
# File 'lib/moov/models/components/contact.rb', line 20 def initialize(phone: nil) @phone = phone end |
Instance Method Details
#==(other) ⇒ Object
25 26 27 28 29 |
# File 'lib/moov/models/components/contact.rb', line 25 def ==(other) return false unless other.is_a? self.class return false unless @phone == other.phone true end |