Class: Ixtlan::Models::Role
- Inherits:
-
Object
- Object
- Ixtlan::Models::Role
- Includes:
- DataMapper::Resource
- Defined in:
- lib/ixtlan/models/role.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_storage_name ⇒ Object
8 9 10 |
# File 'lib/ixtlan/models/role.rb', line 8 def self.default_storage_name "Role" end |
Instance Method Details
#==(other) ⇒ Object
19 20 21 |
# File 'lib/ixtlan/models/role.rb', line 19 def ==(other) attribute_get(:name).eql?(other.attribute_get(:name)) end |
#eql? ⇒ Object
18 |
# File 'lib/ixtlan/models/role.rb', line 18 alias :eql? :== |
#hash ⇒ Object
14 15 16 |
# File 'lib/ixtlan/models/role.rb', line 14 def hash attribute_get(:name).hash end |