Module: Wikipedia

Defined in:
lib/wikipedia.rb,
lib/wikipedia/url.rb,
lib/wikipedia/page.rb,
lib/wikipedia/client.rb,
lib/wikipedia/version.rb,
lib/wikipedia/configuration.rb

Defined Under Namespace

Classes: Client, Configuration, Page, Url

Constant Summary collapse

VERSION =
"1.5.0"

Class Method Summary collapse

Class Method Details

.Configure(&block) ⇒ Object


28
29
30
# File 'lib/wikipedia.rb', line 28

def self.Configure(&block)
  Configuration.instance.instance_eval(&block)
end

.find(page, options = {}) ⇒ Object

basically just a wrapper for doing client = Wikipedia::Client.new client.find('Rails')


16
17
18
# File 'lib/wikipedia.rb', line 16

def self.find( page, options = {} )
  client.find( page, options )
end

.find_image(title, options = {}) ⇒ Object


20
21
22
# File 'lib/wikipedia.rb', line 20

def self.find_image( title, options = {} )
  client.find_image( title, options )
end

.find_random(options = {}) ⇒ Object


24
25
26
# File 'lib/wikipedia.rb', line 24

def self.find_random( options = {} )
  client.find_random( options )
end