Class: Nlg::SentenceObject

Inherits:
Object
  • Object
show all
Defined in:
lib/nlg/sentence_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options={})
  puts object_details
  @specifications = object_details['specifications'] if object_details['specifications'] 
  @value = object_details['value']
  @object_type = object_type
  @conjugated = options["conjugated"]
end

Instance Attribute Details

#conjugatedObject

Returns the value of attribute conjugated.



3
4
5
# File 'lib/nlg/sentence_object.rb', line 3

def conjugated
  @conjugated
end

#object_typeObject

Returns the value of attribute object_type.



3
4
5
# File 'lib/nlg/sentence_object.rb', line 3

def object_type
  @object_type
end

#specificationsObject

Returns the value of attribute specifications.



3
4
5
# File 'lib/nlg/sentence_object.rb', line 3

def specifications
  @specifications
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/nlg/sentence_object.rb', line 3

def value
  @value
end