Class: Highrise::Tag
- Defined in:
- lib/highrise/tag.rb
Class Method Summary collapse
-
.find_by_name(arg) ⇒ Object
You can’t find :one because that finds all objects with that tag.
Instance Method Summary collapse
Class Method Details
.find_by_name(arg) ⇒ Object
You can’t find :one because that finds all objects with that tag
8 9 10 |
# File 'lib/highrise/tag.rb', line 8 def self.find_by_name(arg) = self.find(:all).detect{|tag| tag.name == arg} 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 |