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