Module: Ixintui

Defined in:
lib/ixintui.rb,
lib/ixintui/service.rb,
lib/ixintui/version.rb,
lib/ixintui/ios_service.rb,
lib/ixintui/android_service.rb

Defined Under Namespace

Classes: AndroidService, IosService, Service

Constant Summary collapse

DEFAULTS =
{
  ios_app_key: "",
  ios_secret_key: "",
  android_app_key: "",
  android_secret_key: ""
}
VERSION =
"1.0.4"

Class Method Summary collapse

Class Method Details

.android_key(app_key, secret_key) ⇒ Object



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

def self.android_key(app_key, secret_key)
  self.options[:android_app_key] = app_key
  self.options[:android_secret_key] = secret_key
end

.configure_keys {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Ixintui)

    the object that the method was called on



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

def self.configure_keys
  yield self
end

.ios_key(app_key, secret_key) ⇒ Object



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

def self.ios_key(app_key, secret_key)
  self.options[:ios_app_key] = app_key
  self.options[:ios_secret_key] = secret_key
end

.optionsObject



15
16
17
# File 'lib/ixintui.rb', line 15

def self.options
  @options ||= DEFAULTS.dup
end