Class: EntitySchema::Transformers::Abstract

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/entity_schema/transformers/abstract.rb

Overview

Transform raw valid options to usefull options

Direct Known Subclasses

Common

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(*args) ⇒ Object



11
12
13
# File 'lib/entity_schema/transformers/abstract.rb', line 11

def self.call(*args)
  instance.call(*args)
end

Instance Method Details

#call(name, owner_name, type, raw_options) ⇒ Object



15
16
17
# File 'lib/entity_schema/transformers/abstract.rb', line 15

def call(name, owner_name, type, raw_options)
  transform_options(name: name, owner_name: owner_name, map_to: type, **raw_options)
end