class Gallerist::PersonPhoto

This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License.

Copyright © 2015, Sebastian Staudt

Public Instance Methods

inspect() click to toggle source
# File lib/gallerist/models/person_photo.rb, line 35
def inspect
  '#<%s person_id=%d photo_id=%s>' % [ self.class, person_id, photo_id ]
end
photo() click to toggle source
# File lib/gallerist/models/person_photo.rb, line 16
def photo
  Gallerist::Photo.find_by master_uuid: master_uuid
end
photo_id() click to toggle source
# File lib/gallerist/models/person_photo.rb, line 20
def photo_id
  photo.id
end