Method: Camdram::Image#info

Defined in:
lib/camdram/image.rb

#infoHash

Return a hash of the image's attributes

Returns:

  • (Hash)

    Hash with symbolized keys.



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/camdram/image.rb', line 12

def info
  {
    id: id,
    filename: filename,
    created_at: created_at,
    width: width,
    height: height,
    extension: extension,
    type: type,
  }
end