Class: Kombo::Models::Shared::PostAtsJobsJobIdApplicationsRequestBodyAnswer

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

Overview

Answer to a ‘FILE` question.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name:, content_type: nil, data_url: nil, data: nil) ⇒ PostAtsJobsJobIdApplicationsRequestBodyAnswer

Returns a new instance of PostAtsJobsJobIdApplicationsRequestBodyAnswer.



35
36
37
38
39
40
# File 'lib/kombo/models/shared/postatsjobsjobidapplicationsrequestbody_answer.rb', line 35

def initialize(name:, content_type: nil, data_url: nil, data: nil)
  @name = name
  @content_type = content_type
  @data_url = data_url
  @data = data
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
# File 'lib/kombo/models/shared/postatsjobsjobidapplicationsrequestbody_answer.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @content_type == other.content_type
  return false unless @data_url == other.data_url
  return false unless @data == other.data
  true
end