Module: Videojuicer::Criterion::Base::ClassMethods
- Defined in:
- lib/videojuicer/criterion/base.rb
Instance Method Summary collapse
- #all(*args) ⇒ Object
- #base_path(options = {}) ⇒ Object
- #first(*args) ⇒ Object
- #get(*args) ⇒ Object
- #singular_name ⇒ Object
Instance Method Details
#all(*args) ⇒ Object
29 |
# File 'lib/videojuicer/criterion/base.rb', line 29 def all(*args); raise NoMethodError; end |
#base_path(options = {}) ⇒ Object
24 25 26 |
# File 'lib/videojuicer/criterion/base.rb', line 24 def base_path(={}) "/criteria/#{self.to_s.split("::").last.snake_case}" end |
#first(*args) ⇒ Object
30 |
# File 'lib/videojuicer/criterion/base.rb', line 30 def first(*args); raise NoMethodError; end |
#get(*args) ⇒ Object
28 |
# File 'lib/videojuicer/criterion/base.rb', line 28 def get(*args); raise NoMethodError; end |
#singular_name ⇒ Object
20 21 22 |
# File 'lib/videojuicer/criterion/base.rb', line 20 def singular_name "criterion" end |