Class: GalleryGenerator::ViewablePhoto
- Inherits:
-
Object
- Object
- GalleryGenerator::ViewablePhoto
- Defined in:
- lib/m1key_gallery_generator/viewable_photo.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#technical_info ⇒ Object
readonly
Returns the value of attribute technical_info.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(id, title, description, metadata, technical_info) ⇒ ViewablePhoto
constructor
A new instance of ViewablePhoto.
Constructor Details
#initialize(id, title, description, metadata, technical_info) ⇒ ViewablePhoto
Returns a new instance of ViewablePhoto.
4 5 6 7 8 9 10 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 4 def initialize(id, title, description, , technical_info) @id = id @title = title @description = description = @technical_info = technical_info end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 3 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 3 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 3 def end |
#technical_info ⇒ Object (readonly)
Returns the value of attribute technical_info.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 3 def technical_info @technical_info end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 3 def title @title end |