Class: GustoEmbedded::Models::Operations::RequiredQuestions
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Operations::RequiredQuestions
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/operations/required_questions.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(question_uuid:, response_type:, text_response: nil, file_response: nil, file_name: nil) ⇒ RequiredQuestions
constructor
A new instance of RequiredQuestions.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(question_uuid:, response_type:, text_response: nil, file_response: nil, file_name: nil) ⇒ RequiredQuestions
Returns a new instance of RequiredQuestions.
27 28 29 30 31 32 33 |
# File 'lib/gusto_embedded/models/operations/required_questions.rb', line 27 def initialize(question_uuid:, response_type:, text_response: nil, file_response: nil, file_name: nil) @question_uuid = question_uuid @response_type = response_type @text_response = text_response @file_response = file_response @file_name = file_name end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/operations/required_questions.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @question_uuid == other.question_uuid return false unless @response_type == other.response_type return false unless @text_response == other.text_response return false unless @file_response == other.file_response return false unless @file_name == other.file_name true end |