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