Module: Adva::Static::Import::Model

Defined in:
lib/adva/static/import/model.rb,
lib/adva/static/import/model/base.rb,
lib/adva/static/import/model/blog.rb,
lib/adva/static/import/model/page.rb,
lib/adva/static/import/model/post.rb,
lib/adva/static/import/model/site.rb,
lib/adva/static/import/model/section.rb

Defined Under Namespace

Classes: Base, Blog, Page, Post, Section, Site

Class Method Summary collapse

Class Method Details

.build(source, *args) ⇒ Object



13
14
15
# File 'lib/adva/static/import/model.rb', line 13

def build(source, *args)
  const_get(source.model_name).new(source, *args)
end