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::DescribeReservedInstances, AWS::EC2::DescribeSecurityGroups, AWS::EC2::DescribeSnapshots, AWS::EC2::DescribeVolumes, AWS::EC2::DetachVolume, AWS::EC2::GetConsoleOutput, AWS::EC2::RunInstances, AWS::EC2::TerminateInstances, AWS::ELB::CreateLoadBalancer, AWS::ELB::DeleteLoadBalancer, AWS::ELB::DeregisterInstancesFromLoadBalancer, AWS::ELB::DescribeInstanceHealth, AWS::ELB::DescribeLoadBalancers, AWS::ELB::DisableAvailabilityZonesForLoadBalancer, AWS::ELB::EnableAvailabilityZonesForLoadBalancer, AWS::ELB::RegisterInstancesWithLoadBalancer, AWS::S3::AccessControlList, AWS::S3::CopyObject, AWS::S3::GetBucket, AWS::S3::GetBucketLocation, AWS::S3::GetBucketObjectVersions, AWS::S3::GetBucketVersioning, AWS::S3::GetRequestPayment, AWS::S3::GetService, AWS::SimpleDB::Basic, Slicehost::CreateSlice, Slicehost::GetBackups, Slicehost::GetFlavor, Slicehost::GetFlavors, Slicehost::GetImage, Slicehost::GetImages, Slicehost::GetSlice, Slicehost::GetSlices, Terremark::Shared::GetCatalog, Terremark::Shared::GetCatalogItem, Terremark::Shared::GetInternetServices, Terremark::Shared::GetNetworkIps, Terremark::Shared::GetNodeServices, Terremark::Shared::GetOrganization, Terremark::Shared::GetOrganizations, Terremark::Shared::GetPublicIps, Terremark::Shared::GetTasksList, Terremark::Shared::GetVappTemplate, Terremark::Shared::GetVdc, Terremark::Shared::InstantiateVappTemplate, Terremark::Shared::InternetService, Terremark::Shared::Network, Terremark::Shared::NodeService, Terremark::Shared::PublicIp, Terremark::Shared::Task, Terremark::Shared::Vapp
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.
7 8 9 |
# File 'lib/fog/parser.rb', line 7 def initialize reset end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/fog/parser.rb', line 5 def response @response end |
Instance Method Details
#characters(string) ⇒ Object
15 16 17 18 |
# File 'lib/fog/parser.rb', line 15 def characters(string) @value ||= '' @value << string.strip end |
#reset ⇒ Object
11 12 13 |
# File 'lib/fog/parser.rb', line 11 def reset @response = {} end |
#start_element(name, attrs = []) ⇒ Object
20 21 22 |
# File 'lib/fog/parser.rb', line 20 def start_element(name, attrs = []) @value = nil end |