Class: GustoEmbedded::Models::Shared::AdminCreateRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/admin_create_request.rb

Overview

The request body for creating a company admin.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(first_name:, last_name:, email:) ⇒ AdminCreateRequest

Returns a new instance of AdminCreateRequest.



23
24
25
26
27
# File 'lib/gusto_embedded/models/shared/admin_create_request.rb', line 23

def initialize(first_name:, last_name:, email:)
  @first_name = first_name
  @last_name = last_name
  @email = email
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/admin_create_request.rb', line 30

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
  true
end