Class: Qiita::Elasticsearch::Nodes::MatchNode
- Inherits:
-
Object
- Object
- Qiita::Elasticsearch::Nodes::MatchNode
- Defined in:
- lib/qiita/elasticsearch/nodes/match_node.rb
Instance Method Summary collapse
-
#initialize(token) ⇒ MatchNode
constructor
A new instance of MatchNode.
- #to_hash ⇒ Hash
Constructor Details
#initialize(token) ⇒ MatchNode
Returns a new instance of MatchNode.
6 7 8 |
# File 'lib/qiita/elasticsearch/nodes/match_node.rb', line 6 def initialize(token) @token = token end |
Instance Method Details
#to_hash ⇒ Hash
11 12 13 |
# File 'lib/qiita/elasticsearch/nodes/match_node.rb', line 11 def to_hash @token.to_hash end |