Sha256: 07528a56fe6a9307c4416a174ac89c913869d1aef0b7a2726778f0bb9d14fd33

Contents?: true

Size: 472 Bytes

Versions: 13

Compression:

Stored size: 472 Bytes

Contents

class Blitline
  class S3Destination
    include AttributeJsonizer
    attr_accessor :key, :bucket, :headers

    def initialize(key, bucket, headers = {})
      @key = key
      @bucket = bucket
      @headers = headers
    end

    def validate
      raise "S3Destination must have a key" if @key.nil?
      raise "S3Destination must have a bucket" if @bucket.nil?
      raise "S3Destination headers must be a hash" if @headers && !@headers.is_a?(Hash)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
blitline-2.9.0 lib/blitline/s3_destination.rb
blitline-2.8.0 lib/blitline/s3_destination.rb
blitline-2.7.0 lib/blitline/s3_destination.rb
blitline-2.6.0 lib/blitline/s3_destination.rb
blitline-2.5.1 lib/blitline/s3_destination.rb
blitline-2.5.0 lib/blitline/s3_destination.rb
blitline-2.4.0 lib/blitline/s3_destination.rb
blitline-2.3.0 lib/blitline/s3_destination.rb
blitline-2.2.0 lib/blitline/s3_destination.rb
blitline-2.1.0 lib/blitline/s3_destination.rb
blitline-2.0.1 lib/blitline/s3_destination.rb
blitline-1.4.0 lib/blitline/s3_destination.rb
blitline-1.3.0 lib/blitline/s3_destination.rb