Module: Odnoklassniki
- Defined in:
- lib/odnoklassniki/error.rb,
lib/odnoklassniki.rb,
lib/odnoklassniki/utils.rb,
lib/odnoklassniki/client.rb,
lib/odnoklassniki/config.rb,
lib/odnoklassniki/request.rb,
lib/odnoklassniki/version.rb,
lib/odnoklassniki/rest/user.rb,
lib/odnoklassniki/connection.rb,
lib/odnoklassniki/rest/mediatopic.rb,
lib/odnoklassniki/rest/mediatopic/content.rb,
lib/odnoklassniki/rest/mediatopic/photoalbum.rb
Overview
Taken and adopted from github.com/sferik/twitter gem
Defined Under Namespace
Modules: Connection, REST, Utils Classes: Client, Config, Error, Request
Constant Summary collapse
- VERSION =
'0.0.2'
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
9 10 11 |
# File 'lib/odnoklassniki.rb', line 9 def config @config end |
Class Method Details
.configure {|@config| ... } ⇒ Object
15 16 17 18 19 |
# File 'lib/odnoklassniki.rb', line 15 def configure @config = Odnoklassniki::Config.new yield @config @config end |
.new(options = {}) ⇒ Object
11 12 13 |
# File 'lib/odnoklassniki.rb', line 11 def new( = {}) Odnoklassniki::Client.new() end |
.options ⇒ Object
21 22 23 |
# File 'lib/odnoklassniki.rb', line 21 def (@config && @config.) || {} end |