Module: Campfiyah

Defined in:
lib/campfiyah.rb,
lib/campfiyah/room.rb,
lib/campfiyah/user.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, User

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

Class Method Details

.adapterObject



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

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

.adapter=(adapter) ⇒ Object



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

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

.enable_mock!Object



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

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