Class: PostImage
- Inherits:
-
Object
- Object
- PostImage
- Defined in:
- lib/models/post.rb
Overview
An object representing an image that is on a post
Instance Attribute Summary collapse
-
#contents ⇒ Object
The binary contents of an image as a Base64 string.
-
#filename ⇒ Object
Returns the value of attribute filename.
Instance Attribute Details
#contents ⇒ Object
The binary contents of an image as a Base64 string
8 9 10 |
# File 'lib/models/post.rb', line 8 def contents @contents end |
#filename ⇒ Object
Returns the value of attribute filename.
6 7 8 |
# File 'lib/models/post.rb', line 6 def filename @filename end |