Class: Qiita::Elasticsearch::Nodes::TermNode

Inherits:
Object
  • Object
show all
Defined in:
lib/qiita/elasticsearch/nodes/term_node.rb

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ TermNode

Returns a new instance of TermNode.

Parameters:



6
7
8
# File 'lib/qiita/elasticsearch/nodes/term_node.rb', line 6

def initialize(token)
  @token = token
end

Instance Method Details

#to_hashHash

Returns:

  • (Hash)


11
12
13
# File 'lib/qiita/elasticsearch/nodes/term_node.rb', line 11

def to_hash
  @token.to_hash
end