Class: Tire::Search::ScriptField
- Inherits:
-
Object
- Object
- Tire::Search::ScriptField
- Defined in:
- lib/tire/search/script_field.rb
Overview
Instance Method Summary collapse
-
#initialize(name, options) ⇒ ScriptField
constructor
A new instance of ScriptField.
- #to_hash ⇒ Object
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(name, options) ⇒ ScriptField
Returns a new instance of ScriptField.
9 10 11 |
# File 'lib/tire/search/script_field.rb', line 9 def initialize(name, ) @hash = { name => } end |
Instance Method Details
#to_hash ⇒ Object
17 18 19 |
# File 'lib/tire/search/script_field.rb', line 17 def to_hash @hash end |
#to_json(options = {}) ⇒ Object
13 14 15 |
# File 'lib/tire/search/script_field.rb', line 13 def to_json(={}) to_hash.to_json end |