Module: Videojuicer::Promo::Base::ClassMethods

Defined in:
lib/videojuicer/promo/base.rb

Instance Method Summary collapse

Instance Method Details

#all(*args) ⇒ Object

Raises:

  • (NoMethodError)


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(options={})
  "/promos/#{self.to_s.split("::").last.snake_case}"
end

#first(*args) ⇒ Object

Raises:

  • (NoMethodError)


35
# File 'lib/videojuicer/promo/base.rb', line 35

def first(*args); raise NoMethodError; end

#get(*args) ⇒ Object

Raises:

  • (NoMethodError)


33
# File 'lib/videojuicer/promo/base.rb', line 33

def get(*args); raise NoMethodError; end

#singular_nameObject



25
26
27
# File 'lib/videojuicer/promo/base.rb', line 25

def singular_name
  "promo"
end