class BERGCloud::Command

Attributes

command_id[R]

Public Class Methods

new(command_id) click to toggle source
# File lib/bergcloud/command.rb, line 6
def initialize(command_id)
  @command_id = command_id
end

Public Instance Methods

delete() click to toggle source
# File lib/bergcloud/command.rb, line 14
def delete
  BERGCloud::Client.delete("/commands/#{@command_id}").body || {}
end
info() click to toggle source
# File lib/bergcloud/command.rb, line 10
def info
  BERGCloud::Client.get("/commands/#{@command_id}").body || {}
end