Class: Chimp::Executable

Inherits:
Object
  • Object
show all
Defined in:
lib/right_chimp/objects/ChimpObjects.rb

Overview

This task contains parameters that describe a script/task to be executed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExecutable

Returns a new instance of Executable.



318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
# File 'lib/right_chimp/objects/ChimpObjects.rb', line 318

def initialize
  @params = {
    "position"=>5,
    "right_script"=>{
      "created_at"=>"",
      "href"=>"dummy_href",
      "updated_at"=>"",
      "version"=>4,
      "is_head_version"=>false,
      "script"=>"",
      "name"=>"dummy_name",
      "description"=>"dummy_description"
      },
      "recipe"=>nil,
      "apply"=>"operational"
    }
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



316
317
318
# File 'lib/right_chimp/objects/ChimpObjects.rb', line 316

def params
  @params
end

Instance Method Details

#hrefObject



336
337
338
# File 'lib/right_chimp/objects/ChimpObjects.rb', line 336

def href
  @params['right_script']['href']
end

#nameObject



339
340
341
# File 'lib/right_chimp/objects/ChimpObjects.rb', line 339

def name
  @params['right_script']['name']
end