Module: Videojuicer::Promo::Base::ClassMethods
- Defined in:
- lib/videojuicer/promo/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
34 |
# File 'lib/videojuicer/promo/base.rb', line 34 def all(*args); raise NoMethodError; end |
#base_path(options = {}) ⇒ Object
29 30 31 |
# File 'lib/videojuicer/promo/base.rb', line 29 def base_path(={}) "/promos/#{self.to_s.split("::").last.snake_case}" end |
#first(*args) ⇒ Object
35 |
# File 'lib/videojuicer/promo/base.rb', line 35 def first(*args); raise NoMethodError; end |
#get(*args) ⇒ Object
33 |
# File 'lib/videojuicer/promo/base.rb', line 33 def get(*args); raise NoMethodError; end |
#singular_name ⇒ Object
25 26 27 |
# File 'lib/videojuicer/promo/base.rb', line 25 def singular_name "promo" end |