Class: OSX::ACL::Assignment
- Inherits:
-
Object
- Object
- OSX::ACL::Assignment
- Defined in:
- lib/acl/assignment.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(components) ⇒ Assignment
constructor
A new instance of Assignment.
- #orphan? ⇒ Boolean
Constructor Details
#initialize(components) ⇒ Assignment
Returns a new instance of Assignment.
6 7 8 |
# File 'lib/acl/assignment.rb', line 6 def initialize(components) @type, @uuid, @name, @id = components end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/acl/assignment.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/acl/assignment.rb', line 4 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/acl/assignment.rb', line 4 def type @type end |
#uuid ⇒ Object
Returns the value of attribute uuid.
4 5 6 |
# File 'lib/acl/assignment.rb', line 4 def uuid @uuid end |
Instance Method Details
#orphan? ⇒ Boolean
10 11 12 |
# File 'lib/acl/assignment.rb', line 10 def orphan? name.to_s == "" end |