Class: Suitcase::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/suitcase/configuration.rb

Class Method Summary collapse

Class Method Details

.cacheObject



7
8
9
# File 'lib/suitcase/configuration.rb', line 7

def self.cache
  return @@cache if cache?
end

.cache=(store) ⇒ Object



3
4
5
# File 'lib/suitcase/configuration.rb', line 3

def self.cache=(store)
  @@cache = Suitcase::Cache.new(store)
end

.cache?Boolean



11
12
13
# File 'lib/suitcase/configuration.rb', line 11

def self.cache?
  defined? @@cache
end

.hotel_api_keyObject



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

def self.hotel_api_key
  @@hotel_api_key
end

.hotel_api_key=(key) ⇒ Object



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

def self.hotel_api_key=(key)
  @@hotel_api_key = key
end

.hotel_cidObject



27
28
29
# File 'lib/suitcase/configuration.rb', line 27

def self.hotel_cid
  @@hotel_cid if defined? @@hotel_cid
end

.hotel_cid=(cid) ⇒ Object



23
24
25
# File 'lib/suitcase/configuration.rb', line 23

def self.hotel_cid=(cid)
  @@hotel_cid = cid
end