Class: ZAWS::External::AWSCLI::Generators::Result::EC2::AllocationId
- Inherits:
-
Object
- Object
- ZAWS::External::AWSCLI::Generators::Result::EC2::AllocationId
- Defined in:
- lib/zaws/external/awscli/generators/result/ec2/allocation_id.rb
Instance Method Summary collapse
- #allocation_id(id) ⇒ Object
- #domain(domain) ⇒ Object
- #get_json ⇒ Object
-
#initialize ⇒ AllocationId
constructor
A new instance of AllocationId.
- #public_ip(ip) ⇒ Object
Constructor Details
#initialize ⇒ AllocationId
Returns a new instance of AllocationId.
8 9 10 11 |
# File 'lib/zaws/external/awscli/generators/result/ec2/allocation_id.rb', line 8 def initialize @addresses= {} self end |
Instance Method Details
#allocation_id(id) ⇒ Object
23 24 25 26 |
# File 'lib/zaws/external/awscli/generators/result/ec2/allocation_id.rb', line 23 def allocation_id(id) @addresses["AllocationId"]=id self end |
#domain(domain) ⇒ Object
18 19 20 21 |
# File 'lib/zaws/external/awscli/generators/result/ec2/allocation_id.rb', line 18 def domain(domain) @addresses["Domain"]=domain self end |
#get_json ⇒ Object
28 29 30 |
# File 'lib/zaws/external/awscli/generators/result/ec2/allocation_id.rb', line 28 def get_json @addresses.to_json end |
#public_ip(ip) ⇒ Object
13 14 15 16 |
# File 'lib/zaws/external/awscli/generators/result/ec2/allocation_id.rb', line 13 def public_ip(ip) @addresses["PublicIp"]=ip self end |