Sha256: 25ce2b111ff979288aca3c7b095de6bf4c2f5575cfa25c60ba0b82349da0512a

Contents?: true

Size: 335 Bytes

Versions: 7

Compression:

Stored size: 335 Bytes

Contents

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

    def initialize(key, bucket)
      @key = key
      @bucket = bucket
    end

    def validate
      raise "S3Destination must have a key" if @key.nil?
      raise "S3Destination must have a bucket" if @bucket.nil?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blitline-1.2.3 lib/blitline/s3_destination.rb
blitline-1.2.2 lib/blitline/s3_destination.rb
blitline-1.2.0 lib/blitline/s3_destination.rb
blitline-1.1.0 lib/blitline/s3_destination.rb
blitline-1.0.3 lib/blitline/s3_destination.rb
blitline-1.0.2 lib/blitline/s3_destination.rb
blitline-1.0.1 lib/blitline/s3_destination.rb