Class: Gallerist::Tag

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/gallerist/models/tag.rb

Overview

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

Instance Method Summary collapse

Methods inherited from BaseModel

iphoto, photos, setup_for, store_setup

Instance Method Details

#inspectObject



23
24
25
# File 'lib/gallerist/models/tag.rb', line 23

def inspect
  "#<%s id=%d name='%s'>" % [ self.class, id, name ]
end

#to_sObject



27
28
29
# File 'lib/gallerist/models/tag.rb', line 27

def to_s
  name
end