Class: CloudRailSi::Types::SandboxObject

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudrail_si/types/SandboxObject.rb

Instance Method Summary collapse

Instance Method Details

#get(key) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/cloudrail_si/types/SandboxObject.rb', line 7

def get(key)
    entry = instance_variable_get("#{Helper.lowerCaseFirstLetter(key)}")
    if (Helper.is_boolean(entry))
        entry = entry ? 1 : 0
    end
    entry
end

#set(key, value) ⇒ Object



15
16
17
# File 'lib/cloudrail_si/types/SandboxObject.rb', line 15

def set(key, value)
    instance_variable_set("#{Helper.lowerCaseFirstLetter(key)}", value)
end