Class: Permission

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accessObject

Returns the value of attribute access.



1203
1204
1205
# File 'lib/chino_ruby.rb', line 1203

def access
  @access
end

#parent_idObject

Returns the value of attribute parent_id.



1203
1204
1205
# File 'lib/chino_ruby.rb', line 1203

def parent_id
  @parent_id
end

#permissionObject

Returns the value of attribute permission.



1203
1204
1205
# File 'lib/chino_ruby.rb', line 1203

def permission
  @permission
end

#resource_idObject

Returns the value of attribute resource_id.



1203
1204
1205
# File 'lib/chino_ruby.rb', line 1203

def resource_id
  @resource_id
end

#resource_typeObject

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

#attributesObject



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