Sha256: 5d37291d9b2e1d8b21f23e810c19c9d32dec1b207061961c914955d0b14835a4

Contents?: true

Size: 450 Bytes

Versions: 50

Compression:

Stored size: 450 Bytes

Contents

module Fog
  module Parsers
    module Slicehost
      module Compute

        class GetFlavor < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'id', 'price', 'ram'
              @response[name] = @value.to_i
            when 'name'
              @response[name] = @value
            end
          end

        end

      end
    end
  end
end

Version data entries

50 entries across 50 versions & 3 rubygems

Version Path
fog-0.7.2 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.7.1 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.7.0 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.6.0 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.5.3 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.5.2 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.5.1 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.5.0 lib/fog/compute/parsers/slicehost/get_flavor.rb
phpfog-fog-0.4.1.3 lib/fog/compute/parsers/slicehost/get_flavor.rb
phpfog-fog-0.4.1.2 lib/fog/compute/parsers/slicehost/get_flavor.rb
phpfog-fog-0.4.1.1 lib/fog/compute/parsers/slicehost/get_flavor.rb
phpfog-fog-0.4.1 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.4.1 lib/fog/compute/parsers/slicehost/get_flavor.rb
fog-0.4.0 lib/fog/slicehost/parsers/compute/get_flavor.rb
fog-0.3.34 lib/fog/slicehost/parsers/compute/get_flavor.rb
fog-0.3.33 lib/fog/slicehost/parsers/compute/get_flavor.rb
fog-0.3.32 lib/fog/slicehost/parsers/compute/get_flavor.rb
fog-0.3.31 lib/fog/slicehost/parsers/compute/get_flavor.rb
fog-0.3.30 lib/fog/slicehost/parsers/compute/get_flavor.rb
fog-0.3.29 lib/fog/slicehost/parsers/compute/get_flavor.rb