Class: ActivePStore::DynamicMatchers::FindByBang

Inherits:
Method
  • Object
show all
Defined in:
lib/active_pstore/dynamic_matchers.rb

Instance Attribute Summary

Attributes inherited from Method

#attribute_names, #model, #name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Method

#define, #initialize, match, pattern

Constructor Details

This class inherits a constructor from ActivePStore::DynamicMatchers::Method

Class Method Details

.prefixObject



108
109
110
# File 'lib/active_pstore/dynamic_matchers.rb', line 108

def self.prefix
  'find_by'
end

.suffixObject



112
113
114
# File 'lib/active_pstore/dynamic_matchers.rb', line 112

def self.suffix
  '!'
end

Instance Method Details

#finderObject



116
117
118
# File 'lib/active_pstore/dynamic_matchers.rb', line 116

def finder
  'find_by!'
end