Class: OpenTox::Policy::Subject

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

Overview

Subject of a policy name(subjectname), type('LDAPUsers' or 'LDAPGroups'), value(LDAP DN e.G.:'uid=guest,ou=people,dc=opentox,dc=org')

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, value) ⇒ Subject


347
348
349
350
351
# File 'lib/policy.rb', line 347

def initialize(name, type, value)
  @name  = name
  @type  = type
  @value = value
end

Instance Attribute Details

#nameObject

Returns the value of attribute name


345
346
347
# File 'lib/policy.rb', line 345

def name
  @name
end

#typeObject

Returns the value of attribute type


345
346
347
# File 'lib/policy.rb', line 345

def type
  @type
end

#valueObject

Returns the value of attribute value


345
346
347
# File 'lib/policy.rb', line 345

def value
  @value
end