Class: SafeImage::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/safe_image/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backendObject (readonly)

Returns the value of attribute backend

Returns:

  • (Object)

    the current value of backend



14
15
16
# File 'lib/safe_image/result.rb', line 14

def backend
  @backend
end

#duration_msObject (readonly)

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



14
15
16
# File 'lib/safe_image/result.rb', line 14

def duration_ms
  @duration_ms
end

#filesizeObject (readonly)

Returns the value of attribute filesize

Returns:

  • (Object)

    the current value of filesize



14
15
16
# File 'lib/safe_image/result.rb', line 14

def filesize
  @filesize
end

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



14
15
16
# File 'lib/safe_image/result.rb', line 14

def height
  @height
end

#inputObject (readonly)

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



14
15
16
# File 'lib/safe_image/result.rb', line 14

def input
  @input
end

#input_formatObject (readonly)

Returns the value of attribute input_format

Returns:

  • (Object)

    the current value of input_format



14
15
16
# File 'lib/safe_image/result.rb', line 14

def input_format
  @input_format
end

#optimizerObject (readonly)

Returns the value of attribute optimizer

Returns:

  • (Object)

    the current value of optimizer



14
15
16
# File 'lib/safe_image/result.rb', line 14

def optimizer
  @optimizer
end

#outputObject (readonly)

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



14
15
16
# File 'lib/safe_image/result.rb', line 14

def output
  @output
end

#output_formatObject (readonly)

Returns the value of attribute output_format

Returns:

  • (Object)

    the current value of output_format



14
15
16
# File 'lib/safe_image/result.rb', line 14

def output_format
  @output_format
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



14
15
16
# File 'lib/safe_image/result.rb', line 14

def width
  @width
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


26
# File 'lib/safe_image/result.rb', line 26

def success? = true