Class: Permission
- Inherits:
-
Object
- Object
- Permission
- Includes:
- ActiveModel::Serializers::JSON
- Defined in:
- lib/chino_ruby.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.
1203 1204 1205 |
# File 'lib/chino_ruby.rb', line 1203 def access @access end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
1203 1204 1205 |
# File 'lib/chino_ruby.rb', line 1203 def parent_id @parent_id end |
#permission ⇒ Object
Returns the value of attribute permission.
1203 1204 1205 |
# File 'lib/chino_ruby.rb', line 1203 def end |
#resource_id ⇒ Object
Returns the value of attribute resource_id.
1203 1204 1205 |
# File 'lib/chino_ruby.rb', line 1203 def resource_id @resource_id end |
#resource_type ⇒ Object
Returns the value of attribute resource_type.
1203 1204 1205 |
# File 'lib/chino_ruby.rb', line 1203 def resource_type @resource_type end |
Instance Method Details
#attributes ⇒ Object
1211 1212 1213 |
# File 'lib/chino_ruby.rb', line 1211 def attributes instance_values end |
#attributes=(hash) ⇒ Object
1205 1206 1207 1208 1209 |
# File 'lib/chino_ruby.rb', line 1205 def attributes=(hash) hash.each do |key, value| send("#{key}=", value) end end |