class Fog::Parsers::AWS::RDS::DescribeDBLogFiles

Attributes

rds_id[R]

Public Class Methods

new(rds_id) click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/rds/describe_db_log_files.rb, line 8
def initialize(rds_id)
  @rds_id = rds_id
  super()
end

Public Instance Methods

end_element(name) click to toggle source
# File lib/fog/aws/parsers/rds/describe_db_log_files.rb, line 26
def end_element(name)
  case name
  when 'LastWritten' then @db_log_file[name] = Time.at(value.to_i / 1000)
  when 'LogFileName' then @db_log_file[name] = value
  when 'Size' then @db_log_file[name] = value.to_i
  when 'DescribeDBLogFilesDetails'
    @response['DescribeDBLogFilesResult']['DBLogFiles'] << @db_log_file
    fresh_log_file
  when 'Marker' then @response['DescribeDBLogFilesResult'][name] = value
  when 'RequestId' then @response['ResponseMetadata'][name] = value
  end
end
fresh_log_file() click to toggle source
# File lib/fog/aws/parsers/rds/describe_db_log_files.rb, line 18
def fresh_log_file
  @db_log_file = {'DBInstanceIdentifier' => @rds_id}
end
reset() click to toggle source
# File lib/fog/aws/parsers/rds/describe_db_log_files.rb, line 13
def reset
  @response = { 'DescribeDBLogFilesResult' => {'DBLogFiles' => []}, 'ResponseMetadata' => {} }
  fresh_log_file
end
start_element(name, attrs = []) click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/rds/describe_db_log_files.rb, line 22
def start_element(name, attrs = [])
  super
end