Class: Nlg::SentenceObject
- Inherits:
-
Object
- Object
- Nlg::SentenceObject
- Defined in:
- lib/nlg/sentence_object.rb
Instance Attribute Summary collapse
-
#conjugated ⇒ Object
Returns the value of attribute conjugated.
-
#object_type ⇒ Object
Returns the value of attribute object_type.
-
#specifications ⇒ Object
Returns the value of attribute specifications.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(object_type, object_details, options = {}) ⇒ SentenceObject
constructor
A new instance of SentenceObject.
Constructor Details
#initialize(object_type, object_details, options = {}) ⇒ SentenceObject
Returns a new instance of SentenceObject.
5 6 7 8 9 10 11 |
# File 'lib/nlg/sentence_object.rb', line 5 def initialize(object_type, object_details, ={}) puts object_details @specifications = object_details['specifications'] if object_details['specifications'] @value = object_details['value'] @object_type = object_type @conjugated = ["conjugated"] end |
Instance Attribute Details
#conjugated ⇒ Object
Returns the value of attribute conjugated.
3 4 5 |
# File 'lib/nlg/sentence_object.rb', line 3 def conjugated @conjugated end |
#object_type ⇒ Object
Returns the value of attribute object_type.
3 4 5 |
# File 'lib/nlg/sentence_object.rb', line 3 def object_type @object_type end |
#specifications ⇒ Object
Returns the value of attribute specifications.
3 4 5 |
# File 'lib/nlg/sentence_object.rb', line 3 def specifications @specifications end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/nlg/sentence_object.rb', line 3 def value @value end |