Class: ChinoRuby::Permission

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Serializers::JSON
Defined in:
lib/chino_ruby/classes.rb

Overview

——————————PERMISSIONS———————————–#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accessObject

Returns the value of attribute access.



1147
1148
1149
# File 'lib/chino_ruby/classes.rb', line 1147

def access
  @access
end

#parent_idObject

Returns the value of attribute parent_id.



1147
1148
1149
# File 'lib/chino_ruby/classes.rb', line 1147

def parent_id
  @parent_id
end

#permissionObject

Returns the value of attribute permission.



1147
1148
1149
# File 'lib/chino_ruby/classes.rb', line 1147

def permission
  @permission
end

#resource_idObject

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_typeObject

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

#attributesObject



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