Class: Hivemind::Runtime::HivemindObject
- Inherits:
-
Object
- Object
- Hivemind::Runtime::HivemindObject
- Defined in:
- lib/hivemind/runtime.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(data, klass) ⇒ HivemindObject
constructor
A new instance of HivemindObject.
Constructor Details
#initialize(data, klass) ⇒ HivemindObject
Returns a new instance of HivemindObject.
8 9 10 |
# File 'lib/hivemind/runtime.rb', line 8 def initialize(data, klass) @data, @klass = data, klass end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/hivemind/runtime.rb', line 6 def data @data end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
6 7 8 |
# File 'lib/hivemind/runtime.rb', line 6 def klass @klass end |