class LessStruct::Entity::Base

Public Class Methods

clear() click to toggle source
# File lib/less_struct/entity/base.rb, line 25
def clear
  clear_impl
end
delete(id) click to toggle source
# File lib/less_struct/entity/base.rb, line 21
def delete(id)
  delete_impl(id)
end
find(id) click to toggle source
# File lib/less_struct/entity/base.rb, line 13
def find(id)
  find_impl(id)
end
save(*args) click to toggle source
# File lib/less_struct/entity/base.rb, line 17
def save(*args)
  new(*args).save
end

Private Class Methods

kind_impl() click to toggle source
# File lib/less_struct/entity/base.rb, line 31
def kind_impl
  kind_body = config_entity_kind || LessStruct::Util::String.to_class_code(self)
  [config_entity_kind_prefix,kind_body].compact.join(".") 
end

Public Instance Methods

delete() click to toggle source
# File lib/less_struct/entity/base.rb, line 41
def delete
  klass.delete(id)
end
save() click to toggle source
# File lib/less_struct/entity/base.rb, line 37
def save
  save_impl
end