Class: Qiita::Elasticsearch::Nodes::MatchNode

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

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ MatchNode

Returns a new instance of MatchNode.

Parameters:



6
7
8
# File 'lib/qiita/elasticsearch/nodes/match_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/match_node.rb', line 11

def to_hash
  @token.to_hash
end