class Fog::Parsers::AWS::CloudFormation::DescribeStackEvents

Public Instance Methods

end_element(name) click to toggle source
# File lib/fog/aws/parsers/cloud_formation/describe_stack_events.rb, line 11
def end_element(name)
  case name
  when 'EventId', 'LogicalResourceId', 'PhysicalResourceId', 'ResourceProperties', 'ResourceStatus', 'ResourceStatusReason', 'ResourceType', 'StackId', 'StackName'
    @event[name] = value
  when 'member'
    @response['StackEvents'] << @event
    @event = {}
  when 'RequestId'
    @response[name] = value
  when 'Timestamp'
    @event[name] = Time.parse(value)
  end
end
reset() click to toggle source
# File lib/fog/aws/parsers/cloud_formation/describe_stack_events.rb, line 6
def reset
  @event = {}
  @response = { 'StackEvents' => [] }
end