Class: Aws::Ec2::QEc2DescribeVolumesParser
- Defined in:
- lib/ec2/ec2.rb
Overview
:nodoc:
Constant Summary
Constants inherited from AwsParser
AwsParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from AwsParser
Instance Method Summary collapse
Methods inherited from AwsParser
#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
This class inherits a constructor from Aws::AwsParser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Aws::AwsParser
Instance Method Details
#reset ⇒ Object
1974 1975 1976 |
# File 'lib/ec2/ec2.rb', line 1974 def reset @result = [] end |
#tagend(name) ⇒ Object
1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 |
# File 'lib/ec2/ec2.rb', line 1938 def tagend(name) case name when 'volumeId' case @xmlpath when 'DescribeVolumesResponse/volumeSet/item' then @volume[:aws_id] = @text end when 'status' case @xmlpath when 'DescribeVolumesResponse/volumeSet/item' then @volume[:aws_status] = @text when 'DescribeVolumesResponse/volumeSet/item/attachmentSet/item' then @volume[:aws_attachment_status] = @text end when 'size' then @volume[:aws_size] = @text.to_i when 'createTime' then @volume[:aws_created_at] = Time.parse(@text) when 'instanceId' then @volume[:aws_instance_id] = @text when 'device' then @volume[:aws_device] = @text when 'attachTime' then @volume[:aws_attached_at] = Time.parse(@text) when 'snapshotId' then @volume[:snapshot_id] = @text.blank? ? nil : @text when 'availabilityZone' then @volume[:zone] = @text when 'item' case @xmlpath when 'DescribeVolumesResponse/volumeSet' then @result << @volume end end end |
#tagstart(name, attributes) ⇒ Object
1928 1929 1930 1931 1932 1933 1934 1935 1936 |
# File 'lib/ec2/ec2.rb', line 1928 def (name, attributes) case name when 'item' case @xmlpath when 'DescribeVolumesResponse/volumeSet' then @volume = {} end end end |