Module: Poro::Modelify::ClassMethods

Defined in:
lib/poro/modelify.rb

Overview

These methods are added as class methods when including Modelify. See Modelify for more information.

Instance Method Summary collapse

Instance Method Details

#contextObject

Get the context instance for this class.



51
52
53
# File 'lib/poro/modelify.rb', line 51

def context
  return Context.fetch(self)
end

#fetch(id) ⇒ Object

Find the object for the given id.



46
47
48
# File 'lib/poro/modelify.rb', line 46

def fetch(id)
  return context.fetch(id)
end