Parent

Class/Module Index [+]

Quicksearch

Fog::Parsers::Base

Attributes

response[R]

Public Class Methods

new() click to toggle source
# File lib/fog/core/parser.rb, line 9
def initialize
  reset
end

Public Instance Methods

attr_value(name, attrs) click to toggle source
# File lib/fog/core/parser.rb, line 13
def attr_value(name, attrs)
  (entry = attrs.detect {|a, v| a == name }) && entry.last
end
characters(string) click to toggle source
# File lib/fog/core/parser.rb, line 21
def characters(string)
  @value ||= ''
  @value << string
end
end_element_namespace(name, prefix = nil, uri = nil) click to toggle source
# File lib/fog/core/parser.rb, line 33
def end_element_namespace name, prefix = nil, uri = nil
  end_element name
end
reset() click to toggle source
# File lib/fog/core/parser.rb, line 17
def reset
  @response = {}
end
start_element(name, attrs = []) click to toggle source
# File lib/fog/core/parser.rb, line 39
def start_element(name, attrs = [])
  @value = nil
end
start_element_namespace(name, attrs = [], prefix = nil, uri = nil, ns = []) click to toggle source

############################################################################### This is a workaround. Original implementation from Nokogiri is overwritten with one that does not join namespace prefix with local name.

# File lib/fog/core/parser.rb, line 29
def start_element_namespace name, attrs = [], prefix = nil, uri = nil, ns = []
  start_element name, attrs
end
value() click to toggle source
# File lib/fog/core/parser.rb, line 43
def value
  @value && @value.dup
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.