Class: Moov::Models::Components::AuthorizedUser
- Inherits:
-
Object
- Object
- Moov::Models::Components::AuthorizedUser
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/authorizeduser.rb
Overview
Fields for identifying an authorized individual.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(first_name:, last_name:) ⇒ AuthorizedUser
constructor
A new instance of AuthorizedUser.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(first_name:, last_name:) ⇒ AuthorizedUser
Returns a new instance of AuthorizedUser.
22 23 24 25 |
# File 'lib/moov/models/components/authorizeduser.rb', line 22 def initialize(first_name:, last_name:) @first_name = first_name @last_name = last_name end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/moov/models/components/authorizeduser.rb', line 28 def ==(other) return false unless other.is_a? self.class return false unless @first_name == other.first_name return false unless @last_name == other.last_name true end |