Class: Fog::Parsers::Base
- Inherits:
-
Nokogiri::XML::SAX::Document
- Object
- Nokogiri::XML::SAX::Document
- Fog::Parsers::Base
- Defined in:
- lib/fog/parser.rb
Direct Known Subclasses
AWS::EC2::AllocateAddress, AWS::EC2::AttachVolume, AWS::EC2::Basic, AWS::EC2::CreateKeyPair, AWS::EC2::CreateSnapshot, AWS::EC2::CreateVolume, AWS::EC2::DescribeAddresses, AWS::EC2::DescribeAvailabilityZones, AWS::EC2::DescribeImages, AWS::EC2::DescribeInstances, AWS::EC2::DescribeKeyPairs, AWS::EC2::DescribeRegions, AWS::EC2::DescribeSecurityGroups, AWS::EC2::DescribeSnapshots, AWS::EC2::DescribeVolumes, AWS::EC2::DetachVolume, AWS::EC2::GetConsoleOutput, AWS::EC2::RunInstances, AWS::EC2::TerminateInstances, AWS::S3::CopyObject, AWS::S3::GetBucket, AWS::S3::GetBucketLocation, AWS::S3::GetRequestPayment, AWS::S3::GetService, AWS::SimpleDB::Basic
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #characters(string) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #reset ⇒ Object
- #start_element(name, attrs = []) ⇒ Object
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/fog/parser.rb', line 12 def initialize reset end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
10 11 12 |
# File 'lib/fog/parser.rb', line 10 def response @response end |
Instance Method Details
#characters(string) ⇒ Object
20 21 22 |
# File 'lib/fog/parser.rb', line 20 def characters(string) @value << string.strip end |
#reset ⇒ Object
16 17 18 |
# File 'lib/fog/parser.rb', line 16 def reset @response = {} end |
#start_element(name, attrs = []) ⇒ Object
24 25 26 |
# File 'lib/fog/parser.rb', line 24 def start_element(name, attrs = []) @value = '' end |