Class: SafeImage::Info
- Inherits:
-
Data
- Object
- Data
- SafeImage::Info
- 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
-
#animated ⇒ Object
readonly
Returns the value of attribute animated.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#orientation ⇒ Object
readonly
Returns the value of attribute orientation.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Attribute Details
#animated ⇒ Object (readonly)
Returns the value of attribute animated
6 7 8 |
# File 'lib/safe_image/result.rb', line 6 def animated @animated end |
#height ⇒ Object (readonly)
Returns the value of attribute height
6 7 8 |
# File 'lib/safe_image/result.rb', line 6 def height @height end |
#orientation ⇒ Object (readonly)
Returns the value of attribute orientation
6 7 8 |
# File 'lib/safe_image/result.rb', line 6 def orientation @orientation end |
#path ⇒ Object (readonly)
Returns the value of attribute path
6 7 8 |
# File 'lib/safe_image/result.rb', line 6 def path @path end |
#size ⇒ Object (readonly)
Returns the value of attribute size
6 7 8 |
# File 'lib/safe_image/result.rb', line 6 def size @size end |
#type ⇒ Object (readonly)
Returns the value of attribute type
6 7 8 |
# File 'lib/safe_image/result.rb', line 6 def type @type end |
#width ⇒ Object (readonly)
Returns the value of attribute width
6 7 8 |
# File 'lib/safe_image/result.rb', line 6 def width @width end |