class Fog::Parsers::AWS::Elasticache::EventListParser
Public Instance Methods
end_element(name)
click to toggle source
Calls superclass method
Fog::Parsers::AWS::Elasticache::Base#end_element
# File lib/fog/aws/parsers/elasticache/event_list.rb, line 20 def end_element(name) case name when 'Date' @event[name] = DateTime.parse(value.strip) when 'Message', 'SourceIdentifier', 'SourceType' @event[name] = value ? value.strip : name when 'Event' @response['Events'] << @event unless @event.empty? when 'IsTruncated', 'Marker', 'NextMarker' @response[name] = value else super end end
reset()
click to toggle source
Calls superclass method
Fog::Parsers::AWS::Elasticache::Base#reset
# File lib/fog/aws/parsers/elasticache/event_list.rb, line 8 def reset super @response['Events'] = [] end
start_element(name, attrs = [])
click to toggle source
Calls superclass method
Fog::Parsers::AWS::Elasticache::Base#start_element
# File lib/fog/aws/parsers/elasticache/event_list.rb, line 13 def start_element(name, attrs = []) super case name when 'Event'; then @event = {} end end