Sha256: 3307b815354c4b5c3e42cbb819576f87668f340a64a714b835f152b887c69a3e

Contents?: true

Size: 689 Bytes

Versions: 55

Compression:

Stored size: 689 Bytes

Contents

module Fog
  module Parsers
    module Storage
      module Google
        class GetService < Fog::Parsers::Base
          def reset
            @bucket = {}
            @response = { "Owner" => {}, "Buckets" => [] }
          end

          def end_element(name)
            case name
            when "Bucket"
              @response["Buckets"] << @bucket
              @bucket = {}
            when "CreationDate"
              @bucket["CreationDate"] = Time.parse(value)
            when "DisplayName", "ID"
              @response["Owner"][name] = value
            when "Name"
              @bucket[name] = value
            end
          end
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.24.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.23.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.22.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.21.1 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.21.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.20.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.19.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.18.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.17.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.16.1 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.16.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.15.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.14.0 lib/fog/parsers/storage/google/get_service.rb
gitlab-fog-google-1.14.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.13.0 lib/fog/parsers/storage/google/get_service.rb
gitlab-fog-google-1.13.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.12.1 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.12.0 lib/fog/parsers/storage/google/get_service.rb
fog-google-1.11.0 lib/fog/parsers/storage/google/get_service.rb