Class: Wikiscript::Client
- Inherits:
-
Object
- Object
- Wikiscript::Client
- Includes:
- LogUtils::Logging
- Defined in:
- lib/wikiscript/client.rb
Constant Summary collapse
- SITE_BASE =
'http://en.wikipedia.org/w/index.php'
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Client
constructor
API_BASE = ‘en.wikipedia.org/w/api.php’.
- #text(title) ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Client
API_BASE = ‘en.wikipedia.org/w/api.php’
12 13 14 |
# File 'lib/wikiscript/client.rb', line 12 def initialize( opts={} ) @opts = opts end |
Instance Method Details
#text(title) ⇒ Object
16 17 18 19 |
# File 'lib/wikiscript/client.rb', line 16 def text( title ) ## todo/fix: urlencode title ??? get( "?action=raw&title=#{title}" ) end |