Class: Cb::Models::CollapsedJobResults
- Inherits:
-
Object
- Object
- Cb::Models::CollapsedJobResults
- Defined in:
- lib/cb/models/implementations/collapsed_job_results.rb
Instance Attribute Summary collapse
-
#args_hash ⇒ Object
readonly
Returns the value of attribute args_hash.
-
#first_item_index ⇒ Object
readonly
Returns the value of attribute first_item_index.
-
#grouped_jobs ⇒ Object
readonly
Returns the value of attribute grouped_jobs.
-
#grouping_parameter ⇒ Object
readonly
Returns the value of attribute grouping_parameter.
-
#last_item_index ⇒ Object
readonly
Returns the value of attribute last_item_index.
-
#search_location ⇒ Object
readonly
Returns the value of attribute search_location.
-
#total_count ⇒ Object
readonly
Returns the value of attribute total_count.
-
#total_pages ⇒ Object
readonly
Returns the value of attribute total_pages.
Instance Method Summary collapse
-
#initialize(args_hash) ⇒ CollapsedJobResults
constructor
A new instance of CollapsedJobResults.
Constructor Details
#initialize(args_hash) ⇒ CollapsedJobResults
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 5 def initialize(args_hash) @args_hash = args_hash @last_item_index = args_hash['LastItemIndex'] @search_location = args_hash['SearchMetaData']['SearchLocations']['SearchLocation'] rescue nil @grouping_parameter = args_hash['GroupedJobSearchResults']['GroupingParameter'] @grouped_jobs = extract_collapsed_jobs(args_hash['GroupedJobSearchResults']['SearchResults']['JobSearchResultsGroup']) @total_pages = args_hash['TotalPages'] @total_count = args_hash['TotalCount'] @first_item_index = args_hash['FirstItemIndex'] @last_item_index = args_hash['LastItemIndex'] end |
Instance Attribute Details
#args_hash ⇒ Object (readonly)
Returns the value of attribute args_hash.
4 5 6 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 4 def args_hash @args_hash end |
#first_item_index ⇒ Object (readonly)
Returns the value of attribute first_item_index.
4 5 6 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 4 def first_item_index @first_item_index end |
#grouped_jobs ⇒ Object (readonly)
Returns the value of attribute grouped_jobs.
4 5 6 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 4 def grouped_jobs @grouped_jobs end |
#grouping_parameter ⇒ Object (readonly)
Returns the value of attribute grouping_parameter.
4 5 6 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 4 def grouping_parameter @grouping_parameter end |
#last_item_index ⇒ Object (readonly)
Returns the value of attribute last_item_index.
4 5 6 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 4 def last_item_index @last_item_index end |
#search_location ⇒ Object (readonly)
Returns the value of attribute search_location.
4 5 6 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 4 def search_location @search_location end |
#total_count ⇒ Object (readonly)
Returns the value of attribute total_count.
4 5 6 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 4 def total_count @total_count end |
#total_pages ⇒ Object (readonly)
Returns the value of attribute total_pages.
4 5 6 |
# File 'lib/cb/models/implementations/collapsed_job_results.rb', line 4 def total_pages @total_pages end |