module ArXiv

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/ar_xiv.rb, line 25
def self.config
  @config
end
config=(hash) click to toggle source
# File lib/ar_xiv.rb, line 29
def self.config=(hash)
  @config = hash
end
get(key, value=nil) click to toggle source
# File lib/ar_xiv.rb, line 11
def self.get(key, value=nil)
  raise "set config by ArXiv.config = some_hash" if @config.empty?
  case key
  when Query
    query = key
  when ComposedQuery
    query = key
  else
    query = Query.new(key,value)
  end
  xml = Request.new(query,@config).get
  XMLParser.parse_short(xml)
end