Class: CloudRailSi::ServiceCode::GetKeyArray
- Inherits:
-
Object
- Object
- CloudRailSi::ServiceCode::GetKeyArray
- Defined in:
- lib/cloudrail_si/servicecode/commands/object/GetKeyArray.rb
Instance Method Summary collapse
Instance Method Details
#execute(environment, parameters) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/cloudrail_si/servicecode/commands/object/GetKeyArray.rb', line 10 def execute(environment, parameters) Helper.assert(parameters.length === 2 && Helper.is_var_address(parameters[0]) && Helper.is_var_address(parameters[1])) result_var = parameters[0] container = Helper.resolve(environment, parameters[1]) keys = container.keys environment.set_variable(result_var, keys) end |
#get_identifier ⇒ Object
6 7 8 |
# File 'lib/cloudrail_si/servicecode/commands/object/GetKeyArray.rb', line 6 def get_identifier 'object.getKeyArray' end |