Class: CutCut::Base
- Inherits:
-
Object
- Object
- CutCut::Base
- Defined in:
- lib/cutcut/base.rb
Overview
Base
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #original_date_time ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/cutcut/base.rb', line 6 def initialize( = {}) @input = .delete(:input) @output = .delete(:output) end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
4 5 6 |
# File 'lib/cutcut/base.rb', line 4 def input @input end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
4 5 6 |
# File 'lib/cutcut/base.rb', line 4 def output @output end |
Instance Method Details
#original_date_time ⇒ Object
11 12 13 14 |
# File 'lib/cutcut/base.rb', line 11 def original_date_time exif = MiniExiftool.new(@input) exif.date_time_original || exif.create_date || exif.modify_date end |