class GrabzIt::ScreenShotStatus

This class represents the screenshot status @version 3.0 @author GrabzIt

Public Class Methods

new(processing = false, cached = false, expired = false, message = '') click to toggle source

@!visibility private

# File lib/grabzit/screenshotstatus.rb, line 7
def initialize(processing = false, cached = false, expired = false, message = '')
        @Processing = processing
        @Cached = cached
        @Expired = expired
        @Message = message
end

Public Instance Methods

cached() click to toggle source

@return [Boolean] if true the screenshot has been cached

# File lib/grabzit/screenshotstatus.rb, line 18
def cached
        @Cached
end
expired() click to toggle source

@return [Boolean] if true the screenshot has expired

# File lib/grabzit/screenshotstatus.rb, line 22
def expired
        @Expired
end
message() click to toggle source

@return [String] returns any error messages associated with the screenshot

# File lib/grabzit/screenshotstatus.rb, line 26
def message
        @Message
end
processing() click to toggle source

@return [Boolean] if true the screenshot is still being processed

# File lib/grabzit/screenshotstatus.rb, line 14
def processing
        @Processing
end