Module: AntLightCloud::ClassMethods

Defined in:
lib/ant_mapper/adapters/light_cloud.rb

Instance Method Summary collapse

Instance Method Details

#class_nameObject



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_systemObject

LightCloud系统名,用于存储时指定LightCloud系统



31
32
33
# File 'lib/ant_mapper/adapters/light_cloud.rb', line 31

def lightcloud_system
	class_name.downcase
end