Class: PropertiesTypelabelsRequest

Inherits:
PropertiesRequest show all
Defined in:
lib/refworks/properties/typelabels/properties_typelabels_request.rb

Class Method Summary collapse

Methods inherited from PropertiesRequest

call_class, generate_class_params

Methods inherited from Request

generate_signature, http_request_verb

Class Method Details

.call_methodObject



2
3
4
# File 'lib/refworks/properties/typelabels/properties_typelabels_request.rb', line 2

def self.call_method
  'typelabels'
end

.generate_request_info(params) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/refworks/properties/typelabels/properties_typelabels_request.rb', line 6

def self.generate_request_info(params)

  # get common Properties parameters
  class_params = generate_class_params(params)

  # query parameters for the typelabels call
  method_params = { :method => call_method,
                    :language => params[:language],
  }

  query_string_params = class_params.merge(method_params)

  # return the request info
  {:params => query_string_params}
end