Class: Modesty::Datastore

Inherits:
Object
  • Object
show all
Defined in:
lib/modesty/datastore.rb

Direct Known Subclasses

RedisData

Defined Under Namespace

Classes: ConnectionError, ExperimentData, MetricData

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#storeObject (readonly)

Returns the value of attribute store.



11
12
13
# File 'lib/modesty/datastore.rb', line 11

def store
  @store
end

Instance Method Details

#connected?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
# File 'lib/modesty/datastore.rb', line 4

def connected?
  self.ping!
  true
rescue ConnectionError
  false
end