Class/Module Index [+]

Quicksearch

Fog::Parsers::Terremark::Shared::GetCatalogItem

Public Instance Methods

end_element(name) click to toggle source
# File lib/fog/terremark/parsers/shared/get_catalog_item.rb, line 25
def end_element(name)
  if name == 'Property'
    @response['Properties'][@property_key] = value
  end
end
reset() click to toggle source
# File lib/fog/terremark/parsers/shared/get_catalog_item.rb, line 8
def reset
  @response = { 'Entity' => {}, 'Properties' => {} }
end
start_element(name, attributes) click to toggle source
# File lib/fog/terremark/parsers/shared/get_catalog_item.rb, line 12
def start_element(name, attributes)
  super
  case name
  when 'Entity'
    @response['Entity'] = extract_attributes(attributes)
  when 'CatalogItem'
    catalog_item = extract_attributes(attributes)
    @response['name'] = catalog_item['name']
  when 'Property'
    @property_key = attributes.value
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.