Class: DictionaryLookup::Definition

Inherits:
Object
  • Object
show all
Defined in:
lib/dictionary_lookup/definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(part_of_speech, denotation, examples) ⇒ Definition

Returns a new instance of Definition.



5
6
7
8
9
# File 'lib/dictionary_lookup/definition.rb', line 5

def initialize(part_of_speech, denotation, examples)
  @part_of_speech = part_of_speech
  @denotation = denotation
  @examples = examples
end

Instance Attribute Details

#denotationObject

Returns the value of attribute denotation.



3
4
5
# File 'lib/dictionary_lookup/definition.rb', line 3

def denotation
  @denotation
end

#examplesObject

Returns the value of attribute examples.



3
4
5
# File 'lib/dictionary_lookup/definition.rb', line 3

def examples
  @examples
end

#part_of_speechObject

Returns the value of attribute part_of_speech.



3
4
5
# File 'lib/dictionary_lookup/definition.rb', line 3

def part_of_speech
  @part_of_speech
end