Module: IdentityCacheFetchers::ClassMethods
- Defined in:
- lib/identity_cache_fetchers.rb
Instance Method Summary collapse
Instance Method Details
#fetch_or_create_by(attributes) ⇒ Object
11 12 13 |
# File 'lib/identity_cache_fetchers.rb', line 11 def fetch_or_create_by(attributes) attributes_to_fetch_by_method(attributes) || create(attributes) end |
#fetch_or_initialize_by(attributes) ⇒ Object
7 8 9 |
# File 'lib/identity_cache_fetchers.rb', line 7 def fetch_or_initialize_by(attributes) attributes_to_fetch_by_method(attributes) || new(attributes) end |