class Blitline::S3Destination

Attributes

bucket[RW]
headers[RW]
key[RW]

Public Class Methods

new(key, bucket, headers = {}) click to toggle source
# File lib/blitline/s3_destination.rb, line 6
def initialize(key, bucket, headers = {})
  @key = key
  @bucket = bucket
  @headers = headers
end

Public Instance Methods

validate() click to toggle source
# File lib/blitline/s3_destination.rb, line 12
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