Class: YaAcl::Role

Inherits:
Object
  • Object
show all
Defined in:
lib/ya_acl/role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Role

Returns a new instance of Role.



4
5
6
7
# File 'lib/ya_acl/role.rb', line 4

def initialize(name, options = {})
  @name = name.to_sym
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ya_acl/role.rb', line 3

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/ya_acl/role.rb', line 3

def options
  @options
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/ya_acl/role.rb', line 9

def to_s
  self.name
end