class Fog::Parsers::Compute::Slicehost::CreateSlice

Public Instance Methods

end_element(name) click to toggle source
# File lib/fog/slicehost/parsers/compute/create_slice.rb, line 12
def end_element(name)
  case name
  when 'address'
    @response['addresses'] ||= []
    @response['addresses'] << value
  when 'backup-id', 'flavor-id', 'id', 'image-id', 'progress'
    @response[name] = value.to_i
  when 'bw-in', 'bw-out'
    @response[name] = value.to_f
  when 'name', 'root-password', 'status'
    @response[name] = value
  end
end
reset() click to toggle source
# File lib/fog/slicehost/parsers/compute/create_slice.rb, line 8
def reset
  @response = {}
end