module Patentscope
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/patentscope/configuration.rb, line 6 def configure self.configuration ||= Configuration.new yield(configuration) if block_given? end
configure_from_env()
click to toggle source
# File lib/patentscope/configuration.rb, line 11 def configure_from_env if self.configuration return false else self.configuration = Configuration.new self.configuration.username = ENV['PATENTSCOPE_WEBSERVICE_USERNAME'] self.configuration.password = ENV['PATENTSCOPE_WEBSERVICE_PASSWORD'] return true end end
configured?()
click to toggle source
# File lib/patentscope/configuration.rb, line 22 def configured? (configuration && configuration.username && configuration.password)? true : false end
get_available_documents(ia_number)
click to toggle source
# File lib/patentscope.rb, line 22 def get_available_documents(ia_number) webservice.get_available_documents(ia_number: ia_number) end
get_document_content(doc_id)
click to toggle source
# File lib/patentscope.rb, line 26 def get_document_content(doc_id) webservice.get_document_content(doc_id: doc_id) end
get_document_content_page(doc_id, page_id)
click to toggle source
# File lib/patentscope.rb, line 42 def get_document_content_page(doc_id, page_id) webservice.get_document_content_page(doc_id: doc_id, page_id: page_id) end
get_document_ocr_content(doc_id)
click to toggle source
# File lib/patentscope.rb, line 30 def get_document_ocr_content(doc_id) webservice.get_document_ocr_content(doc_id: doc_id) end
get_document_table_of_contents(doc_id)
click to toggle source
# File lib/patentscope.rb, line 38 def get_document_table_of_contents(doc_id) webservice.get_document_table_of_contents(doc_id: doc_id) end
get_iasr(ia_number)
click to toggle source
# File lib/patentscope.rb, line 34 def get_iasr(ia_number) webservice.get_iasr(ia_number: ia_number) end
reset_configuration()
click to toggle source
# File lib/patentscope/configuration.rb, line 26 def reset_configuration self.configuration = nil end
wsdl()
click to toggle source
# File lib/patentscope.rb, line 18 def wsdl webservice.wsdl end
Private Class Methods
webservice()
click to toggle source
# File lib/patentscope.rb, line 48 def webservice Webservice.new end