Class: OSX::ACL::Assignment

Inherits:
Object
  • Object
show all
Defined in:
lib/acl/assignment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/acl/assignment.rb', line 4

def id
  @id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/acl/assignment.rb', line 4

def name
  @name
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/acl/assignment.rb', line 4

def type
  @type
end

#uuidObject

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/acl/assignment.rb', line 10

def orphan?
  name.to_s == ""
end