Method: Fog::Parsers::AWS::Compute::NetworkInterfaceParser#start_element

Defined in:
lib/fog/aws/parsers/compute/network_interface_parser.rb

#start_element(name, attrs = []) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/fog/aws/parsers/compute/network_interface_parser.rb', line 19

def start_element(name, attrs = [])
  super
  case name
  when 'tagSet'
    @in_tag_set = true
    @tag        = {}
  when 'groupSet'
    @in_group_set = true
    @group        = {}
  when 'attachment'
    @in_attachment = true
    @attachment    = {}
  when 'association'
    @in_association = true
    @association    = {}
  when 'privateIpAddressesSet'
    @in_private_ip_addresses = true
    @private_ip_addresses  = []
    @private_ip_address = {}
  end
end