class ImageDiff::Snapshot

Snapshot class

Attributes

id[R]
file[R]
snapshot_path[R]

Public Class Methods

new(snapshot_path, file) click to toggle source
# File lib/image_diff/snapshot.rb, line 18
def initialize(snapshot_path, file)
  @snapshot_path = snapshot_path
  @file = file
end

Public Instance Methods

filename() click to toggle source
# File lib/image_diff/snapshot.rb, line 31
def filename
  "#{@file}#{extension}"
end
filepath() click to toggle source
# File lib/image_diff/snapshot.rb, line 27
def filepath
  File.join(fullpath, @file)
end
fullpath() click to toggle source
# File lib/image_diff/snapshot.rb, line 23
def fullpath
  FileUtils.mkdir_p(snapshot_path)
end