Class: SafeImage::Info

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

Overview

Public metadata return value. Optional fields (‘animated`, `orientation`) are nil unless the caller opts into the extra probes.

Instance Attribute Summary collapse

Instance Attribute Details

#animatedObject (readonly)

Returns the value of attribute animated

Returns:

  • (Object)

    the current value of animated



6
7
8
# File 'lib/safe_image/result.rb', line 6

def animated
  @animated
end

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



6
7
8
# File 'lib/safe_image/result.rb', line 6

def height
  @height
end

#orientationObject (readonly)

Returns the value of attribute orientation

Returns:

  • (Object)

    the current value of orientation



6
7
8
# File 'lib/safe_image/result.rb', line 6

def orientation
  @orientation
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



6
7
8
# File 'lib/safe_image/result.rb', line 6

def path
  @path
end

#sizeObject (readonly)

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



6
7
8
# File 'lib/safe_image/result.rb', line 6

def size
  @size
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/safe_image/result.rb', line 6

def type
  @type
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



6
7
8
# File 'lib/safe_image/result.rb', line 6

def width
  @width
end