Module: LazyModel

Defined in:
lib/lazy_model.rb,
lib/lazy_model/lazy_state.rb,
lib/lazy_model/lazy_boolean.rb

Defined Under Namespace

Classes: LazyBoolean, LazyState

Instance Method Summary collapse

Instance Method Details

#lazy_boolean(attribute) ⇒ Object



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

def lazy_boolean(attribute)
	LazyBoolean.new(self, attribute).define_methods
end

#lazy_state(attribute, enumerables = nil, custom_finders = {}) ⇒ Object



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

def lazy_state(attribute, enumerables = nil, custom_finders = {})
	LazyState.new(self, attribute, enumerables, custom_finders).define_methods
end