Class: Patentscope::Webservice

Inherits:
Object
  • Object
show all
Defined in:
lib/patentscope/webservice.rb

Constant Summary collapse

PATENTSCOPE_WEBSERVICE_LOCATION =
"https://patentscope.wipo.int/patentscope-webservice/servicesPatentScope"

Instance Method Summary collapse

Instance Method Details

#get_available_documents(args = {}) ⇒ Object



11
12
13
14
# File 'lib/patentscope/webservice.rb', line 11

def get_available_documents(args = {})
  ia_number = PctAppNumber.new(args[:ia_number]).to_ia_number
  perform_operation(:getAvailableDocuments, { iaNumber: ia_number })
end

#get_document_content(args = {}) ⇒ Object



16
17
18
19
# File 'lib/patentscope/webservice.rb', line 16

def get_document_content(args = {})
  doc_id = args[:doc_id]
  perform_operation(:getDocumentContent, { docId: doc_id })
end

#get_document_content_page(args = {}) ⇒ Object



36
37
38
39
40
# File 'lib/patentscope/webservice.rb', line 36

def get_document_content_page(args = {})
  doc_id  = args[:doc_id]
  page_id = args[:page_id]
  perform_operation(:getDocumentContentPage, { docId: doc_id, pageId: page_id })
end

#get_document_ocr_content(args = {}) ⇒ Object



21
22
23
24
# File 'lib/patentscope/webservice.rb', line 21

def get_document_ocr_content(args = {})
  doc_id = args[:doc_id]
  perform_operation(:getDocumentOcrContent, { docId: doc_id })
end

#get_document_table_of_contents(args = {}) ⇒ Object



31
32
33
34
# File 'lib/patentscope/webservice.rb', line 31

def get_document_table_of_contents(args = {})
  doc_id = args[:doc_id]
  perform_operation(:getDocumentTableOfContents, { docId: doc_id })
end

#get_iasr(args = {}) ⇒ Object



26
27
28
29
# File 'lib/patentscope/webservice.rb', line 26

def get_iasr(args = {})
  ia_number = PctAppNumber.new(args[:ia_number]).to_ia_number
  perform_operation(:getIASR, { iaNumber: ia_number })
end

#wsdlObject



7
8
9
# File 'lib/patentscope/webservice.rb', line 7

def wsdl
  send_wsdl_request
end