Class: Kombo::Models::Operations::GetHrisPerformanceReviewCyclesResponse
- Inherits:
-
Object
- Object
- Kombo::Models::Operations::GetHrisPerformanceReviewCyclesResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/operations/gethrisperformancereviewcycles_response.rb
Instance Attribute Summary collapse
-
#next_page ⇒ Object
Returns the value of attribute next_page.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #each ⇒ Object
-
#initialize(content_type:, status_code:, raw_response:, get_hris_performance_review_cycles_positive_response: nil) ⇒ GetHrisPerformanceReviewCyclesResponse
constructor
A new instance of GetHrisPerformanceReviewCyclesResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(content_type:, status_code:, raw_response:, get_hris_performance_review_cycles_positive_response: nil) ⇒ GetHrisPerformanceReviewCyclesResponse
Returns a new instance of GetHrisPerformanceReviewCyclesResponse.
27 28 29 30 31 32 |
# File 'lib/kombo/models/operations/gethrisperformancereviewcycles_response.rb', line 27 def initialize(content_type:, status_code:, raw_response:, get_hris_performance_review_cycles_positive_response: nil) @content_type = content_type @status_code = status_code @raw_response = raw_response @get_hris_performance_review_cycles_positive_response = get_hris_performance_review_cycles_positive_response end |
Instance Attribute Details
#next_page ⇒ Object
Returns the value of attribute next_page.
15 16 17 |
# File 'lib/kombo/models/operations/gethrisperformancereviewcycles_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/gethrisperformancereviewcycles_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_hris_performance_review_cycles_positive_response == other.get_hris_performance_review_cycles_positive_response true end |
#each ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'lib/kombo/models/operations/gethrisperformancereviewcycles_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 |