Class: ImageGallery::GalleryGenerator::GalleryImageModel

Inherits:
Struct
  • Object
show all
Defined in:
lib/gallery/gallery.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#creation_datetimeObject

Returns the value of attribute creation_datetime

Returns:

  • (Object)

    the current value of creation_datetime



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

def creation_datetime
  @creation_datetime
end

#original_pathObject

Returns the value of attribute original_path

Returns:

  • (Object)

    the current value of original_path



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

def original_path
  @original_path
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



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

def path
  @path
end

#thumbnail_pathObject

Returns the value of attribute thumbnail_path

Returns:

  • (Object)

    the current value of thumbnail_path



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

def thumbnail_path
  @thumbnail_path
end

Instance Method Details

#to_liquidObject



15
16
17
# File 'lib/gallery/gallery.rb', line 15

def to_liquid
  to_h.transform_keys(&:to_s)
end