Method: Snapfish::Asset#as_json
- Defined in:
- lib/snapfish/asset.rb
#as_json(options = {}) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/snapfish/asset.rb', line 42 def as_json( = {}) { id: id, ref: snapfish_ref, filename: filename, file_extension: file_extension, width: width, height: height, size: size, caption: caption, url: hires_url } end |