Class: CloudRailSi::Types::SandboxObject
- Inherits:
-
Object
- Object
- CloudRailSi::Types::SandboxObject
show all
- Defined in:
- lib/cloudrail_si/types/SandboxObject.rb
Direct Known Subclasses
Address, Charge, CloudMetaData, CreditCard, CustomDate, DateOfBirth, Error, Location, POI, Refund, SpaceAllocation, Subscription, SubscriptionPlan, Types
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
|