Module: Ropl::Composition::ClassMethods

Defined in:
lib/ropl/composition.rb

Instance Method Summary collapse

Instance Method Details

#retrieve(key) ⇒ Object

Raises:



29
30
31
32
33
# File 'lib/ropl/composition.rb', line 29

def retrieve(key)
  ropl = self.ancestors[0].class_variable_get :@@ropl_object
  raise Error if ropl.nil?
  ropl.get self.ancestors[0], key
end

#ropl(riak_client) ⇒ Object



25
26
27
# File 'lib/ropl/composition.rb', line 25

def ropl(riak_client)
  self.ancestors[0].class_variable_set :@@ropl_object, Ropl.new(riak_client)
end