Module: EasyWeibo
- Defined in:
- lib/easy_weibo.rb,
lib/easy_weibo/client.rb,
lib/easy_weibo/version.rb,
lib/easy_weibo/configuration.rb,
lib/generators/easy_weibo/install_generator.rb
Defined Under Namespace
Modules: Generators
Classes: Client, Configuration, Error
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
12
13
14
|
# File 'lib/easy_weibo.rb', line 12
def self.configuration
@configuration ||= Configuration.new
end
|
Class Method Details
.app_key ⇒ Object
27
28
29
|
# File 'lib/easy_weibo.rb', line 27
def app_key
configuration.app_key
end
|
.app_secret ⇒ Object
31
32
33
|
# File 'lib/easy_weibo.rb', line 31
def app_secret
configuration.app_secret
end
|
23
24
25
|
# File 'lib/easy_weibo.rb', line 23
def configure
yield(configuration)
end
|
.redirect_uri ⇒ Object
35
36
37
|
# File 'lib/easy_weibo.rb', line 35
def redirect_uri
configuration.redirect_uri
end
|
.root ⇒ Object
39
40
41
|
# File 'lib/easy_weibo.rb', line 39
def root
File.dirname __dir__
end
|