Class: Djoini::Base

Inherits:
Object
  • Object
show all
Includes:
Composable
Defined in:
lib/djoini/base.rb

Overview

Basic abstract model to inherit

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Composable

#features, #method_missing, #respond_to_missing?

Constructor Details

#initialize(params) ⇒ Base

Returns a new instance of Base.



10
11
12
# File 'lib/djoini/base.rb', line 10

def initialize(params)
  features << Record.new(params)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Djoini::Composable

Class Method Details

.inherited(child_class) ⇒ Object



14
15
16
# File 'lib/djoini/base.rb', line 14

def self.inherited(child_class)
  child_class.extend(ClassMethods)
end