class Fog::Parsers::AWS::SimpleDB::GetAttributes
Public Instance Methods
end_element(name)
click to toggle source
# File lib/fog/aws/parsers/simpledb/get_attributes.rb, line 13 def end_element(name) case name when 'Attribute' @attribute = nil when 'BoxUsage' response[name] = value.to_f when 'Name' @attribute = value response['Attributes'][@attribute] ||= [] when 'RequestId' response[name] = value when 'Value' response['Attributes'][@attribute] << sdb_decode(value) end end
reset()
click to toggle source
# File lib/fog/aws/parsers/simpledb/get_attributes.rb, line 8 def reset @attribute = nil @response = { 'Attributes' => {} } end