Class: ChinoRuby::Permission
- Inherits:
-
Object
- Object
- ChinoRuby::Permission
- Includes:
- ActiveModel::Serializers::JSON
- Defined in:
- lib/chino_ruby/classes.rb
Overview
——————————PERMISSIONS———————————–#
Instance Attribute Summary collapse
-
#access ⇒ Object
Returns the value of attribute access.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#permission ⇒ Object
Returns the value of attribute permission.
-
#resource_id ⇒ Object
Returns the value of attribute resource_id.
-
#resource_type ⇒ Object
Returns the value of attribute resource_type.
Instance Method Summary collapse
Instance Attribute Details
#access ⇒ Object
Returns the value of attribute access.
1147 1148 1149 |
# File 'lib/chino_ruby/classes.rb', line 1147 def access @access end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
1147 1148 1149 |
# File 'lib/chino_ruby/classes.rb', line 1147 def parent_id @parent_id end |
#permission ⇒ Object
Returns the value of attribute permission.
1147 1148 1149 |
# File 'lib/chino_ruby/classes.rb', line 1147 def @permission end |
#resource_id ⇒ Object
Returns the value of attribute resource_id.
1147 1148 1149 |
# File 'lib/chino_ruby/classes.rb', line 1147 def resource_id @resource_id end |
#resource_type ⇒ Object
Returns the value of attribute resource_type.
1147 1148 1149 |
# File 'lib/chino_ruby/classes.rb', line 1147 def resource_type @resource_type end |
Instance Method Details
#attributes ⇒ Object
1155 1156 1157 |
# File 'lib/chino_ruby/classes.rb', line 1155 def attributes instance_values end |
#attributes=(hash) ⇒ Object
1149 1150 1151 1152 1153 |
# File 'lib/chino_ruby/classes.rb', line 1149 def attributes=(hash) hash.each do |key, value| send("#{key}=", value) end end |