class Yus::Persistence::Og
Public Instance Methods
add_entity(entity)
click to toggle source
# File lib/yus/persistence/og.rb, line 11 def add_entity(entity) entity.save end
entities()
click to toggle source
# File lib/yus/persistence/og.rb, line 14 def entities Entity.find_all end
find_entity(name)
click to toggle source
# File lib/yus/persistence/og.rb, line 17 def find_entity(name) Entity.find_by_name(name) end
save_entity(entity)
click to toggle source
# File lib/yus/persistence/og.rb, line 20 def save_entity(entity) entity.save end