Module: FindByHash::ClassMethods
- Defined in:
- lib/find_by_hash.rb
Instance Method Summary collapse
- #find_all_by_hash(hash) ⇒ Object
- #find_by_hash(hash) ⇒ Object
- #find_or_create_by_hash(hash) ⇒ Object
- #find_or_initialize_by_hash(hash) ⇒ Object
Instance Method Details
#find_all_by_hash(hash) ⇒ Object
11 12 13 |
# File 'lib/find_by_hash.rb', line 11 def find_all_by_hash(hash) hash_find("find_all_by", hash) end |
#find_by_hash(hash) ⇒ Object
7 8 9 |
# File 'lib/find_by_hash.rb', line 7 def find_by_hash(hash) hash_find("find_by", hash) end |
#find_or_create_by_hash(hash) ⇒ Object
15 16 17 |
# File 'lib/find_by_hash.rb', line 15 def find_or_create_by_hash(hash) hash_find("find_or_create_by", hash) end |
#find_or_initialize_by_hash(hash) ⇒ Object
19 20 21 |
# File 'lib/find_by_hash.rb', line 19 def find_or_initialize_by_hash(hash) hash_find("find_or_initialize_by", hash) end |