Class: YaAcl::Resource
- Inherits:
-
Object
- Object
- YaAcl::Resource
- Defined in:
- lib/ya_acl/resource.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(name) ⇒ Resource
Returns a new instance of Resource.
5 6 7 |
# File 'lib/ya_acl/resource.rb', line 5 def initialize(name) @name = name.to_sym end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ya_acl/resource.rb', line 3 def name @name end |