class Image
Attributes
basedir[RW]
img[RW]
Public Class Methods
new(basedir, img)
click to toggle source
# File lib/juxtapose/application/lib/image.rb, line 4 def initialize(basedir, img) self.basedir = basedir self.img = img end
Public Instance Methods
accepted?()
click to toggle source
# File lib/juxtapose/application/lib/image.rb, line 9 def accepted? File.basename(img).match /accepted/ end
as_json()
click to toggle source
# File lib/juxtapose/application/lib/image.rb, line 29 def as_json { path: path, img: img } end
current?()
click to toggle source
# File lib/juxtapose/application/lib/image.rb, line 13 def current? File.basename(img).match /current/ end
diff?()
click to toggle source
# File lib/juxtapose/application/lib/image.rb, line 17 def diff? File.basename(img).match /diff/ end
path()
click to toggle source
# File lib/juxtapose/application/lib/image.rb, line 21 def path File.join("/images", img) end
to_json(options={})
click to toggle source
# File lib/juxtapose/application/lib/image.rb, line 25 def to_json(options={}) as_json.to_json end