Module: GcalMapper::Mapper::Simple

Defined in:
lib/gcal_mapper/mapper/simple.rb

Overview

module to include when no orm is used

Defined Under Namespace

Classes: Simple

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

execute when the file is included

Parameters:

  • base (Class)

    class of the includer



11
12
13
14
15
# File 'lib/gcal_mapper/mapper/simple.rb', line 11

def self.included(base)
  base.extend(GcalMapper::Mapper::ClassMethods)
  Mapper.base = base
  Mapper.adapter = Simple.new(base)
end