Class: Suture::Value::Observation
- Inherits:
-
Object
- Object
- Suture::Value::Observation
- Defined in:
- lib/suture/value/observation.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Observation
constructor
A new instance of Observation.
- #result ⇒ Object
Constructor Details
#initialize(attrs) ⇒ Observation
Returns a new instance of Observation.
7 8 9 10 11 12 13 |
# File 'lib/suture/value/observation.rb', line 7 def initialize(attrs) @id = attrs[:id] @name = attrs[:name] @args = attrs[:args] @return_value = attrs[:return] @error = attrs[:error] end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
5 6 7 |
# File 'lib/suture/value/observation.rb', line 5 def args @args end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/suture/value/observation.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/suture/value/observation.rb', line 5 def name @name end |