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

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

Class Attribute Summary (collapse)

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from Typecasting

#typecast, #typecast_hash

Methods inherited from Hash

#to_normalized_options, #to_normalized_options!, #to_query_string

Constructor Details

- (XmlParser) initialize(body)



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

+ (Object) parsing_library

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

- (Object) body (readonly)

Returns the value of attribute body



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

def body
  @body
end

- (Object) root (readonly)

Returns the value of attribute root



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

def root
  @root
end

- (Object) xml_in (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