Class: Moov::Models::Components::IndividualNameUpdate
- Inherits:
-
Object
- Object
- Moov::Models::Components::IndividualNameUpdate
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/individualnameupdate.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(first_name: nil, middle_name: nil, last_name: nil, suffix: nil) ⇒ IndividualNameUpdate
constructor
A new instance of IndividualNameUpdate.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(first_name: nil, middle_name: nil, last_name: nil, suffix: nil) ⇒ IndividualNameUpdate
Returns a new instance of IndividualNameUpdate.
26 27 28 29 30 31 |
# File 'lib/moov/models/components/individualnameupdate.rb', line 26 def initialize(first_name: nil, middle_name: nil, last_name: nil, suffix: nil) @first_name = first_name @middle_name = middle_name @last_name = last_name @suffix = suffix end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/moov/models/components/individualnameupdate.rb', line 34 def ==(other) return false unless other.is_a? self.class return false unless @first_name == other.first_name return false unless @middle_name == other.middle_name return false unless @last_name == other.last_name return false unless @suffix == other.suffix true end |