Class: FastImage::Exif
- Inherits:
-
Object
- Object
- FastImage::Exif
- Defined in:
- lib/fastimage.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#orientation ⇒ Object
readonly
Returns the value of attribute orientation.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(stream) ⇒ Exif
constructor
A new instance of Exif.
- #rotated? ⇒ Boolean
Constructor Details
#initialize(stream) ⇒ Exif
Returns a new instance of Exif.
951 952 953 954 955 |
# File 'lib/fastimage.rb', line 951 def initialize(stream) @stream = stream @width, @height, @orientation = nil parse_exif end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
949 950 951 |
# File 'lib/fastimage.rb', line 949 def height @height end |
#orientation ⇒ Object (readonly)
Returns the value of attribute orientation.
949 950 951 |
# File 'lib/fastimage.rb', line 949 def orientation @orientation end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
949 950 951 |
# File 'lib/fastimage.rb', line 949 def width @width end |
Instance Method Details
#rotated? ⇒ Boolean
957 958 959 |
# File 'lib/fastimage.rb', line 957 def rotated? @orientation >= 5 end |