Sha256: 77921128e3b8b014bbc9d83df62bb63ce1b3efd957ba2bb7b3ad6f207a7ce79c
Contents?: true
Size: 935 Bytes
Versions: 2
Compression:
Stored size: 935 Bytes
Contents
module Fog module Parsers module AWS module RDS require 'fog/aws/parsers/rds/base' class EventListParser < Base def reset super @response['Events'] = [] end def start_element(name, attrs = []) super case name when 'Event'; then @event = {} end end 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 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-1.22.0 | lib/fog/aws/parsers/rds/event_list.rb |
fog-1.21.0 | lib/fog/aws/parsers/rds/event_list.rb |