Class: ManuscriptRequest

Inherits:
Request show all
Defined in:
lib/refworks/manuscript/manuscript_request.rb

Class Method Summary collapse

Methods inherited from Request

generate_signature, http_request_verb

Class Method Details

.call_classObject



2
3
4
# File 'lib/refworks/manuscript/manuscript_request.rb', line 2

def self.call_class
  "manuscript"
end

.generate_class_params(params) ⇒ Object



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

def self.generate_class_params(params)
  # handle params common to all Manuscript calls
  class_name = call_class()

  # query parameters common to all Manuscript calls
  {
      :class => class_name,
      :id => params[:id],
      :fileformat => params[:fileformat],
      :maxrefs => params[:maxrefs] || 999999,
      :language => params[:language] || 'en',
      :base_url => params[:base_url] || nil,
  }
end