Class: OpenTox::Policy::Subject
- Inherits:
-
Object
- Object
- OpenTox::Policy::Subject
- Defined in:
- lib/policy.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, type, value) ⇒ Subject
constructor
A new instance of Subject.
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
#name ⇒ Object
Returns the value of attribute name.
252 253 254 |
# File 'lib/policy.rb', line 252 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
252 253 254 |
# File 'lib/policy.rb', line 252 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
252 253 254 |
# File 'lib/policy.rb', line 252 def value @value end |