Module: Lunanode::APIActions::Script

Included in:
Lunanode::APIActions
Defined in:
lib/lunanode/api_actions/script.rb,
lib/lunanode/api_actions/default/script.rb

Instance Method Summary collapse

Instance Method Details

#script_create(name:, content:) ⇒ Object


14
15
16
# File 'lib/lunanode/api_actions/default/script.rb', line 14

def script_create(name:, content:)
  action(:script, :create, name: name, content: content)
end

#script_delete(script_id:) ⇒ Object


22
23
24
# File 'lib/lunanode/api_actions/default/script.rb', line 22

def script_delete(script_id:)
  action(:script, :delete, script_id: script_id)
end

#script_get(script_id:) ⇒ Object


10
11
12
# File 'lib/lunanode/api_actions/default/script.rb', line 10

def script_get(script_id:)
  action(:script, :get, script_id: script_id)
end

#script_listObject


6
7
8
# File 'lib/lunanode/api_actions/default/script.rb', line 6

def script_list
  action(:script, :list)
end

#script_update(script_id:, name:, content:) ⇒ Object


18
19
20
# File 'lib/lunanode/api_actions/default/script.rb', line 18

def script_update(script_id:, name:, content:)
  action(:script, :update, script_id: script_id, name: name, content: content)
end