Module: AntLightCloud::ClassMethods
- Defined in:
- lib/ant_mapper/adapters/light_cloud.rb
Instance Method Summary collapse
- #class_name ⇒ Object
-
#class_name=(value) ⇒ Object
指定类名,默认是class定义的名字.
- #delete(key) ⇒ Object
-
#lightcloud_system ⇒ Object
LightCloud系统名,用于存储时指定LightCloud系统.
Instance Method Details
#class_name ⇒ Object
26 27 28 |
# File 'lib/ant_mapper/adapters/light_cloud.rb', line 26 def class_name read_inheritable_attribute(:class_name) || self.to_s end |
#class_name=(value) ⇒ Object
指定类名,默认是class定义的名字
22 23 24 |
# File 'lib/ant_mapper/adapters/light_cloud.rb', line 22 def class_name=(value) write_inheritable_attribute :class_name,value end |
#delete(key) ⇒ Object
17 18 19 |
# File 'lib/ant_mapper/adapters/light_cloud.rb', line 17 def delete(key) LightCloud.delete(key,self.lightcloud_system) end |
#lightcloud_system ⇒ Object
LightCloud系统名,用于存储时指定LightCloud系统
31 32 33 |
# File 'lib/ant_mapper/adapters/light_cloud.rb', line 31 def lightcloud_system class_name.downcase end |