860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
|
# File 'lib/sdb/sdb_interface.rb', line 860
def tagend(name)
case name
when 'Name'
case @xmlpath
when 'SelectResponse/SelectResult/Item'
@item = @text
@result[:items] << {@item => {}}
when 'SelectResponse/SelectResult/Item/Attribute'
@attribute = @text
@result[:items].last[@item][@attribute] ||= []
end
when 'RequestId' then
@result[:request_id] = @text
when 'BoxUsage' then
@result[:box_usage] = @text
when 'NextToken' then
@result[:next_token] = @text
when 'Value' then
@result[:items].last[@item][@attribute] << @text
end
end
|