Class: Highrise::Tag

Inherits:
Base
  • Object
show all
Defined in:
lib/highrise/tag.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

url_for

Class Method Details

.delete_by_name(name) ⇒ Object



7
8
9
10
# File 'lib/highrise/tag.rb', line 7

def self.delete_by_name(name)
 tag = find_by_name(name)
 tag.destroy if tag
end

Instance Method Details

#==(object) ⇒ Object



3
4
5
# File 'lib/highrise/tag.rb', line 3

def ==(object)
  (object.instance_of?(self.class) && object.id == self.id && object.name == self.name)
end