Class: Yade::Domain::Rest::Model::Role

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Serializers::JSON, ActiveModel::Validations
Defined in:
lib/yade/domain/rest/model/role.rb

Overview

Role

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/yade/domain/rest/model/role.rb', line 15

def id
  @id
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/yade/domain/rest/model/role.rb', line 15

def name
  @name
end

Instance Method Details

#attributesObject



19
20
21
# File 'lib/yade/domain/rest/model/role.rb', line 19

def attributes
  instance_values
end