Class: YANAPI::CategoryQuery

Inherits:
Query
  • Object
show all
Includes:
Common
Defined in:
lib/yanapi/category_query.rb

Constant Summary collapse

VALID_PARAMS =
[:category_id,
 :category_name,
 :date_range,
 :region,
 :results,
 :sort,
 :start,
 :type
]
REQUIRED_PARAMS =

Semantics differ here: OR, not AND.

[[:category_id, :category_name]]

Constants inherited from Query

Query::HOST, Query::SERVICE, Query::SERVICE_VERSION, Query::VALID_OUTPUT_FORMATS

Instance Method Summary collapse

Methods inherited from Query

#get

Constructor Details

#initialize(params) ⇒ CategoryQuery

Returns a new instance of CategoryQuery.



21
22
23
24
# File 'lib/yanapi/category_query.rb', line 21

def initialize(params)
  params[:method] = 'getByCategory'
  super
end