Module: MonkeyParty

Defined in:
lib/monkey_party.rb,
lib/monkey_party/base.rb,
lib/monkey_party/list.rb,
lib/monkey_party/error.rb,
lib/monkey_party/version.rb,
lib/monkey_party/subscriber.rb

Defined Under Namespace

Classes: Base, Error, List, Subscriber

Constant Summary collapse

VERSION =
"0.3.2"

Class Method Summary collapse

Class Method Details

.api_keyObject



8
9
10
# File 'lib/monkey_party.rb', line 8

def self.api_key
  @api_key || ENV["MCAPI_KEY"]
end

.api_key=(api_key) ⇒ Object



4
5
6
# File 'lib/monkey_party.rb', line 4

def self.api_key=(api_key)
  @api_key = api_key
end

.data_centerObject



16
17
18
# File 'lib/monkey_party.rb', line 16

def self.data_center
  @data_center || default_data_center
end

.data_center=(data_center) ⇒ Object



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

def self.data_center=(data_center)
  @data_center = data_center
end

.default_data_centerObject



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

def self.default_data_center
  "us1"
end