class Blitline::Save
Attributes
image_identifier[RW]
s3_destination[RW]
Public Class Methods
new(image_identifier)
click to toggle source
# File lib/blitline/save.rb, line 6 def initialize(image_identifier) @image_identifier = image_identifier end
Public Instance Methods
add_s3_destination(key, bucket, headers = {})
click to toggle source
# File lib/blitline/save.rb, line 10 def add_s3_destination(key, bucket, headers = {}) @s3_destination = Blitline::S3Destination.new(key, bucket, headers) end
validate()
click to toggle source
# File lib/blitline/save.rb, line 14 def validate raise "Save must have an image_identifier. This value is returned with results and let's you, the client, identify what image this is" if @image_identifier.nil? @s3_destination.validate unless @s3_destination.nil? end