Class: RelatedWord::Formatter::BaseFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/related_word/formatter/base_formatter.rb

Direct Known Subclasses

OnelookFormatter, SemanticFormatter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resp) ⇒ BaseFormatter

Returns a new instance of BaseFormatter.



6
7
8
# File 'lib/related_word/formatter/base_formatter.rb', line 6

def initialize(resp)
  @resp = resp
end

Instance Attribute Details

#respObject (readonly)

Returns the value of attribute resp.



4
5
6
# File 'lib/related_word/formatter/base_formatter.rb', line 4

def resp
  @resp
end