Class: Searchkick::Script

Inherits:
Object
  • Object
show all
Defined in:
lib/searchkick/script.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#langObject (readonly)

Returns the value of attribute lang.



3
4
5
# File 'lib/searchkick/script.rb', line 3

def lang
  @lang
end

#paramsObject (readonly)

Returns the value of attribute params.



3
4
5
# File 'lib/searchkick/script.rb', line 3

def params
  @params
end

#sourceObject (readonly)

Returns the value of attribute source.



3
4
5
# File 'lib/searchkick/script.rb', line 3

def source
  @source
end