Class: Kombo::Models::Operations::GetAtsRejectionReasonsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(content_type:, status_code:, raw_response:, get_ats_rejection_reasons_positive_response: nil) ⇒ GetAtsRejectionReasonsResponse

Returns a new instance of GetAtsRejectionReasonsResponse.



27
28
29
30
31
32
# File 'lib/kombo/models/operations/getatsrejectionreasons_response.rb', line 27

def initialize(content_type:, status_code:, raw_response:, get_ats_rejection_reasons_positive_response: nil)
  @content_type = content_type
  @status_code = status_code
  @raw_response = raw_response
  @get_ats_rejection_reasons_positive_response = get_ats_rejection_reasons_positive_response
end

Instance Attribute Details

#next_pageObject

Returns the value of attribute next_page.



15
16
17
# File 'lib/kombo/models/operations/getatsrejectionreasons_response.rb', line 15

def next_page
  @next_page
end

Instance Method Details

#==(other) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/kombo/models/operations/getatsrejectionreasons_response.rb', line 35

def ==(other)
  return false unless other.is_a? self.class
  return false unless @content_type == other.content_type
  return false unless @status_code == other.status_code
  return false unless @raw_response == other.raw_response
  return false unless @get_ats_rejection_reasons_positive_response == other.get_ats_rejection_reasons_positive_response
  true
end

#eachObject



44
45
46
47
48
49
50
51
52
# File 'lib/kombo/models/operations/getatsrejectionreasons_response.rb', line 44

def each
  page = self
  loop do
    yield page
    next_page = page.next_page.call if page.next_page
    break if next_page.nil?
    page = T.must(next_page)
  end
end