class ZAWS::External::AWSCLI::Generators::Result::Route53::HostedZones
Public Class Methods
new()
click to toggle source
# File lib/zaws/external/awscli/generators/result/route53/hosted_zones.rb, line 8 def initialize @hostedZones= {} @hostedZones["HostedZones"]= [] self end
Public Instance Methods
add(hostedZones)
click to toggle source
# File lib/zaws/external/awscli/generators/result/route53/hosted_zones.rb, line 32 def add(hostedZones) @hostedZones["HostedZones"].concat(hostedZones.get_hostedZones_array) self end
get_hostedZones_array()
click to toggle source
# File lib/zaws/external/awscli/generators/result/route53/hosted_zones.rb, line 41 def get_hostedZones_array @hostedZones["HostedZones"] end
get_json()
click to toggle source
# File lib/zaws/external/awscli/generators/result/route53/hosted_zones.rb, line 37 def get_json @hostedZones.to_json end
id(hosted_zone_number, id)
click to toggle source
# File lib/zaws/external/awscli/generators/result/route53/hosted_zones.rb, line 14 def id(hosted_zone_number, id) resize_hostedZones_array(hosted_zone_number) @hostedZones["HostedZones"][hosted_zone_number]["Id"]=id self end
name(hosted_zone_number, name)
click to toggle source
# File lib/zaws/external/awscli/generators/result/route53/hosted_zones.rb, line 20 def name(hosted_zone_number, name) resize_hostedZones_array(hosted_zone_number) @hostedZones["HostedZones"][hosted_zone_number]["Name"]=name self end
resize_hostedZones_array(index)
click to toggle source
# File lib/zaws/external/awscli/generators/result/route53/hosted_zones.rb, line 26 def resize_hostedZones_array(index) while index > @hostedZones["HostedZones"].length-1 @hostedZones["HostedZones"].push({}) end end