Class: PostImage

Inherits:
Object
  • Object
show all
Defined in:
lib/models/post.rb

Overview

An object representing an image that is on a post

Instance Attribute Summary collapse

Instance Attribute Details

#contentsObject

The binary contents of an image as a Base64 string



8
9
10
# File 'lib/models/post.rb', line 8

def contents
  @contents
end

#filenameObject

Returns the value of attribute filename.



6
7
8
# File 'lib/models/post.rb', line 6

def filename
  @filename
end