Sha256: 71f927424949b8c59159a5273878e340b2c58ac7d43eabdadef09cb9c06a0f34

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require "stashify/file"

module Stashify
  class File
    module Google
      module Cloud
        class Storage < Stashify::File
          def initialize(bucket:, path:)
            @bucket = bucket
            super(path: path)
          end

          def contents
            @bucket.file(path).download.string
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stashify-google-cloud-storage-2.0.0 lib/stashify/file/google/cloud/storage.rb