Class: GalleryGenerator::MutableViewablePhoto
- Inherits:
-
Object
- Object
- GalleryGenerator::MutableViewablePhoto
- Defined in:
- lib/m1key_gallery_generator/viewable_photo.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#technical_info ⇒ Object
Returns the value of attribute technical_info.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(viewable_photo) ⇒ MutableViewablePhoto
constructor
A new instance of MutableViewablePhoto.
Constructor Details
#initialize(viewable_photo) ⇒ MutableViewablePhoto
Returns a new instance of MutableViewablePhoto.
15 16 17 18 19 20 21 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 15 def initialize(viewable_photo) @id = viewable_photo.id @title = viewable_photo.title @description = viewable_photo.description = viewable_photo. @technical_info = viewable_photo.technical_info end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
14 15 16 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
14 15 16 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14 def id @id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
14 15 16 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14 def end |
#technical_info ⇒ Object
Returns the value of attribute technical_info.
14 15 16 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14 def technical_info @technical_info end |
#title ⇒ Object
Returns the value of attribute title.
14 15 16 |
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14 def title @title end |