Method: Misc::Script#initialize
- Defined in:
- lib/misc/script.rb
#initialize(id_or_code:, params: {}, type: Enums::ScriptTypes.inline, lang: 'painless', options: {}) ⇒ Script
Returns a new instance of Script.
15 16 17 18 19 20 21 |
# File 'lib/misc/script.rb', line 15 def initialize(id_or_code:, params: {}, type: Enums::ScriptTypes.inline, lang: 'painless', options: {}) @id_or_code = id_or_code @params = params @type = type @lang = lang = end |