Class: GustoEmbedded::Models::Shared::User
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::User
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/user.rb
Overview
Information for the user who will be the primary payroll administrator for the new company.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(first_name:, last_name:, email:, phone: nil) ⇒ User
constructor
A new instance of User.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(first_name:, last_name:, email:, phone: nil) ⇒ User
Returns a new instance of User.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/shared/user.rb', line 25 def initialize(first_name:, last_name:, email:, phone: nil) @first_name = first_name @last_name = last_name @email = email @phone = phone end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gusto_embedded/models/shared/user.rb', line 33 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 return false unless @email == other.email return false unless @phone == other.phone true end |