Class: BaseInstance
- Inherits:
-
Object
- Object
- BaseInstance
- Defined in:
- lib/libisi/instance/base.rb
Instance Attribute Summary collapse
-
#concept ⇒ Object
readonly
Returns the value of attribute concept.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(concept, object, options = {}) ⇒ BaseInstance
constructor
A new instance of BaseInstance.
- #value(name, options = {}) ⇒ Object
- #values(options = {}) ⇒ Object
Constructor Details
#initialize(concept, object, options = {}) ⇒ BaseInstance
Returns a new instance of BaseInstance.
23 24 25 26 |
# File 'lib/libisi/instance/base.rb', line 23 def initialize(concept, object, = {}) @concept = concept @object = object end |
Instance Attribute Details
#concept ⇒ Object (readonly)
Returns the value of attribute concept.
21 22 23 |
# File 'lib/libisi/instance/base.rb', line 21 def concept @concept end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
21 22 23 |
# File 'lib/libisi/instance/base.rb', line 21 def object @object end |
Instance Method Details
#value(name, options = {}) ⇒ Object
28 29 30 |
# File 'lib/libisi/instance/base.rb', line 28 def value(name, = {}) values.first {|v| v.name == name} end |