Class: AWS::S3::Parsing::XmlParser

Inherits:
Hash
  • Object
show all
Includes:
Typecasting
Defined in:
lib/aws-matt/s3/parsing.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Typecasting

#typecast, #typecast_hash

Constructor Details

#initialize(body) ⇒ XmlParser

Returns a new instance of XmlParser.



52
53
54
55
56
57
58
59
# File 'lib/aws-matt/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_libraryObject

Returns the value of attribute parsing_library.



47
48
49
# File 'lib/aws-matt/s3/parsing.rb', line 47

def parsing_library
  @parsing_library
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



50
51
52
# File 'lib/aws-matt/s3/parsing.rb', line 50

def body
  @body
end

#rootObject (readonly)

Returns the value of attribute root.



50
51
52
# File 'lib/aws-matt/s3/parsing.rb', line 50

def root
  @root
end

#xml_inObject (readonly)

Returns the value of attribute xml_in.



50
51
52
# File 'lib/aws-matt/s3/parsing.rb', line 50

def xml_in
  @xml_in
end