Class: RightAws::S3Interface::S3MultipartUploadInitiateResponseParser

Inherits:
RightAWSParser
  • Object
show all
Defined in:
lib/s3/right_s3_interface.rb

Constant Summary

Constants inherited from RightAWSParser

RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAWSParser

#full_tag_name, #result, #tag, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightAWSParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagstart, #tagtext, #text, xml_lib, xml_lib=

Constructor Details

This class inherits a constructor from RightAws::RightAWSParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser

Instance Method Details

#headers_to_string(headers) ⇒ Object



633
634
635
636
637
638
639
640
# File 'lib/s3/right_s3_interface.rb', line 633

def headers_to_string(headers)
  result = {}
  headers.each do |key, value|
    value       = value.first if value.is_a?(Array) && value.size<2
    result[key] = value
  end
  result
end

#resetObject



630
631
632
# File 'lib/s3/right_s3_interface.rb', line 630

def reset
  @result = {}
end

#tagend(name) ⇒ Object



641
642
643
644
645
# File 'lib/s3/right_s3_interface.rb', line 641

def tagend(name)
  case name
    when 'UploadId'          then @result[:upload_id] = @text
  end
end