Class: Fog::Parsers::AWS::RDS::SnapshotParser
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::AWS::RDS::SnapshotParser
show all
- Defined in:
- lib/fog/aws/parsers/rds/snapshot_parser.rb
Instance Method Summary
collapse
Instance Method Details
#end_element(name) ⇒ Object
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/fog/aws/parsers/rds/snapshot_parser.rb', line 18
def end_element(name)
case name
when 'AllocatedStorage', 'Port'
@db_snapshot[name] = value.to_i
when 'InstanceCreateTime', 'SnapshotCreateTime'
@db_snapshot[name] = Time.parse(value)
else
@db_snapshot[name] = value
end
end
|
#fresh_snapshot ⇒ Object
10
11
12
|
# File 'lib/fog/aws/parsers/rds/snapshot_parser.rb', line 10
def fresh_snapshot
{}
end
|
#reset ⇒ Object
6
7
8
|
# File 'lib/fog/aws/parsers/rds/snapshot_parser.rb', line 6
def reset
@db_snapshot = fresh_snapshot
end
|
#start_element(name, attrs = []) ⇒ Object
14
15
16
|
# File 'lib/fog/aws/parsers/rds/snapshot_parser.rb', line 14
def start_element(name, attrs = [])
super
end
|