class Kempelen::API::Operations::GetReviewableHits
Constants
- AWS_DEFAULT_PAGE_NUMBER
- AWS_DEFAULT_PAGE_SIZE
- AWS_OPERATION_NAME
- AWS_RESPONSE_OBJECT
Attributes
hit_type_id[RW]
page_number[RW]
page_size[RW]
sort_direction[RW]
sort_property[RW]
status[RW]
Public Class Methods
new(client, hit_type_id = nil)
click to toggle source
Calls superclass method
Kempelen::API::Operations::Base::new
# File lib/kempelen/API/operations/get_reviewable_hits.rb, line 17 def initialize(client, hit_type_id = nil) super(client) @response_object = AWS_RESPONSE_OBJECT @hit_type_id = hit_type_id @status = :reviewable @page_size = AWS_DEFAULT_PAGE_SIZE @page_number = AWS_DEFAULT_PAGE_NUMBER @sort_property = :enumeration @sort_direction = :descending end
Public Instance Methods
amazon_sort_direction()
click to toggle source
# File lib/kempelen/API/operations/get_reviewable_hits.rb, line 37 def amazon_sort_direction @sort_direction.to_s.capitalize.freeze end
amazon_sort_property()
click to toggle source
# File lib/kempelen/API/operations/get_reviewable_hits.rb, line 33 def amazon_sort_property @sort_property.to_s.capitalize.freeze end
amazon_status()
click to toggle source
# File lib/kempelen/API/operations/get_reviewable_hits.rb, line 29 def amazon_status @status.to_s.capitalize.freeze end
create_parameters()
click to toggle source
Calls superclass method
Kempelen::API::Operations::Base#create_parameters
# File lib/kempelen/API/operations/get_reviewable_hits.rb, line 41 def create_parameters @parameters[:operation] = AWS_OPERATION_NAME @parameters[:hit_type_id] = @hit_type_id unless @hit_type_id.nil? @parameters[:status] = amazon_status @parameters[:page_size] = @page_size @parameters[:page_number] = @page_number @parameters[:sort_property] = amazon_sort_property @parameters[:sort_direction] = amazon_sort_direction super end
perform_operation()
click to toggle source
Calls superclass method
Kempelen::API::Operations::Base#perform_operation
# File lib/kempelen/API/operations/get_reviewable_hits.rb, line 53 def perform_operation create_request_string super Kempelen::API::Responses::ReviewableHitsResponse.new(@raw_response) end