Module: Yinxiangma

Defined in:
lib/yinxiangma.rb,
lib/yinxiangma/valid.rb,
lib/yinxiangma/version.rb,
lib/yinxiangma/client_helper.rb,
lib/yinxiangma/configuration.rb

Defined Under Namespace

Modules: ClientHelper, Valid Classes: Configuration, YinxiangmaError

Constant Summary collapse

YINXIANGMA_API_SERVER_URL =
'http://www.yinxiangma.com/api/'
YINXIANGMA_REGISTER_URL =
'http://www.yinxiangma.com/server/register.php'
YINXIANGMA_TOKEN_URL =
'yzm.token.php'
YINXIANGMA_VALID_URL =
'yzm.valid.php'
YINXIANGMA_DISPLAY_MODE =
'live'
YINXIANGMA_PUBLISHER_KEY =
'cb9d0fe8dabdea89019d845be3059973'
SKIP_VALID_ENV =
'test'
VERSION =
'0.0.3'

Class Method Summary collapse

Class Method Details

.configurationObject



19
20
21
# File 'lib/yinxiangma.rb', line 19

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

.configure {|config| ... } ⇒ Object

Yields:

  • (config)


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

def self.configure
  config = configuration
  yield(config)
end