Module: Campfiyah

Defined in:
lib/campfiyah.rb,
lib/campfiyah/room.rb,
lib/campfiyah/account.rb,
lib/campfiyah/version.rb,
lib/campfiyah/adapters.rb,
lib/campfiyah/adapters/http.rb,
lib/campfiyah/adapters/memory.rb

Defined Under Namespace

Modules: Adapters Classes: Account, Room

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.adapterObject



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

def self.adapter
  @adapter ||= Campfiyah::Adapters::HTTP
end

.adapter=(adapter) ⇒ Object



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

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

.enable_mock!Object



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

def self.enable_mock!
  @mock    = true
  @adapter = Campfiyah::Adapters::Memory
end