Class: GalleryGenerator::MutableViewablePhoto

Inherits:
Object
  • Object
show all
Defined in:
lib/m1key_gallery_generator/viewable_photo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



14
15
16
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14

def description
  @description
end

#idObject

Returns the value of attribute id.



14
15
16
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14

def id
  @id
end

#metadataObject

Returns the value of attribute metadata.



14
15
16
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14

def 
  
end

#technical_infoObject

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

#titleObject

Returns the value of attribute title.



14
15
16
# File 'lib/m1key_gallery_generator/viewable_photo.rb', line 14

def title
  @title
end