Module: EasyWechat

Defined in:
lib/easy_wechat.rb,
lib/easy_wechat/client.rb,
lib/easy_wechat/version.rb,
lib/easy_wechat/configuration.rb,
lib/generators/easy_wechat/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Client, Configuration, Error

Constant Summary collapse

VERSION =
"0.1.9"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



9
10
11
# File 'lib/easy_wechat.rb', line 9

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

Class Method Details

.app_idObject



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

def app_id
  configuration.app_id
end

.app_secretObject



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

def app_secret
  configuration.app_secret
end

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

Yields:



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

def configure
  yield(configuration)
end