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

.configurationObject



12
13
14
# File 'lib/easy_weibo.rb', line 12

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.app_keyObject



27
28
29
# File 'lib/easy_weibo.rb', line 27

def app_key
  configuration.app_key
end

.app_secretObject



31
32
33
# File 'lib/easy_weibo.rb', line 31

def app_secret
  configuration.app_secret
end

.configure {|configuration| ... } ⇒ Object

Yields:



23
24
25
# File 'lib/easy_weibo.rb', line 23

def configure
  yield(configuration)
end

.redirect_uriObject



35
36
37
# File 'lib/easy_weibo.rb', line 35

def redirect_uri
  configuration.redirect_uri
end

.rootObject



39
40
41
# File 'lib/easy_weibo.rb', line 39

def root
  File.dirname __dir__
end