Class: Searchkick::Script
- Inherits:
-
Object
- Object
- Searchkick::Script
- Defined in:
- lib/searchkick/script.rb
Instance Attribute Summary collapse
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, lang: "painless", params: {}) ⇒ Script
constructor
A new instance of Script.
Constructor Details
#initialize(source, lang: "painless", params: {}) ⇒ Script
Returns a new instance of Script.
5 6 7 8 9 |
# File 'lib/searchkick/script.rb', line 5 def initialize(source, lang: "painless", params: {}) @source = source @lang = lang @params = params end |
Instance Attribute Details
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
3 4 5 |
# File 'lib/searchkick/script.rb', line 3 def lang @lang end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/searchkick/script.rb', line 3 def params @params end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
3 4 5 |
# File 'lib/searchkick/script.rb', line 3 def source @source end |