Class: Chimp::Executable
- Inherits:
-
Object
- Object
- Chimp::Executable
- 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
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
- #href ⇒ Object
-
#initialize ⇒ Executable
constructor
A new instance of Executable.
- #name ⇒ Object
Constructor Details
#initialize ⇒ Executable
Returns a new instance of Executable.
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 |
# File 'lib/right_chimp/objects/ChimpObjects.rb', line 323 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
#params ⇒ Object
Returns the value of attribute params.
321 322 323 |
# File 'lib/right_chimp/objects/ChimpObjects.rb', line 321 def params @params end |
Instance Method Details
#href ⇒ Object
341 342 343 |
# File 'lib/right_chimp/objects/ChimpObjects.rb', line 341 def href @params['right_script']['href'] end |
#name ⇒ Object
344 345 346 |
# File 'lib/right_chimp/objects/ChimpObjects.rb', line 344 def name @params['right_script']['name'] end |