# File lib/fog/aws/parsers/compute/describe_instance_status.rb, line 32 def end_element(name) if @in_events_set case name when 'code', 'description' @event[name] = value when 'notAfter', 'notBefore' @event[name] = Time.parse(value) when 'item' @instance['eventsSet'] << @event new_event when 'eventsSet' @in_events_set = false end else case name when 'instanceId', 'availabilityZone' @instance[name] = value when 'name', 'code' @instance['instanceState'][name] = value when 'item' @response['instanceStatusSet'] << @instance new_instance when 'requestId' @response[name] = value end end end
# File lib/fog/aws/parsers/compute/describe_instance_status.rb, line 11 def new_event @event = {} end
# File lib/fog/aws/parsers/compute/describe_instance_status.rb, line 7 def new_instance @instance = { 'eventsSet' => [], 'instanceState' => {} } end
Generated with the Darkfish Rdoc Generator 2.