Class: GustoEmbedded::Models::Shared::InformationRequest
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::InformationRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/information_request.rb
Overview
Representation of an information request
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid: nil, company_uuid: nil, status: nil, blocking_payroll: nil, required_questions: nil, type: nil) ⇒ InformationRequest
constructor
A new instance of InformationRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid: nil, company_uuid: nil, status: nil, blocking_payroll: nil, required_questions: nil, type: nil) ⇒ InformationRequest
Returns a new instance of InformationRequest.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/information_request.rb', line 29 def initialize(uuid: nil, company_uuid: nil, status: nil, blocking_payroll: nil, required_questions: nil, type: nil) @uuid = uuid @company_uuid = company_uuid @status = status @blocking_payroll = blocking_payroll @required_questions = required_questions @type = type end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/information_request.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @company_uuid == other.company_uuid return false unless @status == other.status return false unless @blocking_payroll == other.blocking_payroll return false unless @required_questions == other.required_questions return false unless @type == other.type true end |