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