Class: GalleryGenerator::ViewablePhotoMetadata
- Inherits:
-
Object
- Object
- GalleryGenerator::ViewablePhotoMetadata
- Defined in:
- lib/m1key_gallery_generator/viewable_photo_metadata.rb
Instance Attribute Summary collapse
-
#exposure_time ⇒ Object
readonly
Returns the value of attribute exposure_time.
-
#f_number ⇒ Object
readonly
Returns the value of attribute f_number.
-
#focal_length ⇒ Object
readonly
Returns the value of attribute focal_length.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#iso ⇒ Object
readonly
Returns the value of attribute iso.
-
#original_file_name ⇒ Object
readonly
Returns the value of attribute original_file_name.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(original_file_name, width, height, iso, focal_length, f_number, exposure_time) ⇒ ViewablePhotoMetadata
constructor
A new instance of ViewablePhotoMetadata.
Constructor Details
#initialize(original_file_name, width, height, iso, focal_length, f_number, exposure_time) ⇒ ViewablePhotoMetadata
Returns a new instance of ViewablePhotoMetadata.
4 5 6 7 8 9 10 11 12 |
# File 'lib/m1key_gallery_generator/viewable_photo_metadata.rb', line 4 def initialize(original_file_name, width, height, iso, focal_length, f_number, exposure_time) @original_file_name = original_file_name @width = width @height = height @iso = iso @focal_length = focal_length @f_number = f_number @exposure_time = exposure_time end |
Instance Attribute Details
#exposure_time ⇒ Object (readonly)
Returns the value of attribute exposure_time.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo_metadata.rb', line 3 def exposure_time @exposure_time end |
#f_number ⇒ Object (readonly)
Returns the value of attribute f_number.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo_metadata.rb', line 3 def f_number @f_number end |
#focal_length ⇒ Object (readonly)
Returns the value of attribute focal_length.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo_metadata.rb', line 3 def focal_length @focal_length end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo_metadata.rb', line 3 def height @height end |
#iso ⇒ Object (readonly)
Returns the value of attribute iso.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo_metadata.rb', line 3 def iso @iso end |
#original_file_name ⇒ Object (readonly)
Returns the value of attribute original_file_name.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo_metadata.rb', line 3 def original_file_name @original_file_name end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo_metadata.rb', line 3 def width @width end |