Class: OpenTox::Policy::Subject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, value) ⇒ Subject

Returns a new instance of Subject.



254
255
256
257
258
# File 'lib/policy.rb', line 254

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



252
253
254
# File 'lib/policy.rb', line 252

def name
  @name
end

#typeObject

Returns the value of attribute type.



252
253
254
# File 'lib/policy.rb', line 252

def type
  @type
end

#valueObject

Returns the value of attribute value.



252
253
254
# File 'lib/policy.rb', line 252

def value
  @value
end