Class: YANAPI::UserQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/yanapi/user_query.rb

Constant Summary collapse

VALID_PARAMS =
[:date_range,
 :filter,
 :results,
 :sort,
 :start,
 :type,
 :user_id
]
REQUIRED_PARAMS =
[:user_id]

Constants inherited from Query

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

Instance Method Summary collapse

Methods inherited from Query

#build_url, #check_params, #expand_params, #get, #get_response, #prove_xml

Constructor Details

#initialize(params) ⇒ UserQuery

Returns a new instance of UserQuery.



17
18
19
20
# File 'lib/yanapi/user_query.rb', line 17

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