Class: AWS::S3::Parsing::XmlParser
- Includes:
- Typecasting
- Defined in:
- lib/aws/s3/parsing.rb
Class Attribute Summary collapse
-
.parsing_library ⇒ Object
Returns the value of attribute parsing_library.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#xml_in ⇒ Object
readonly
Returns the value of attribute xml_in.
Instance Method Summary collapse
-
#initialize(body) ⇒ XmlParser
constructor
A new instance of XmlParser.
Methods included from Typecasting
Methods inherited from Hash
#to_normalized_options, #to_normalized_options!, #to_query_string
Constructor Details
#initialize(body) ⇒ XmlParser
Returns a new instance of XmlParser.
52 53 54 55 56 57 58 59 |
# File 'lib/aws/s3/parsing.rb', line 52 def initialize(body) @body = body unless body.strip.empty? parse set_root typecast_xml_in end end |
Class Attribute Details
.parsing_library ⇒ Object
Returns the value of attribute parsing_library.
47 48 49 |
# File 'lib/aws/s3/parsing.rb', line 47 def parsing_library @parsing_library end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
50 51 52 |
# File 'lib/aws/s3/parsing.rb', line 50 def body @body end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
50 51 52 |
# File 'lib/aws/s3/parsing.rb', line 50 def root @root end |
#xml_in ⇒ Object (readonly)
Returns the value of attribute xml_in.
50 51 52 |
# File 'lib/aws/s3/parsing.rb', line 50 def xml_in @xml_in end |