Class: Chewy::Type::Witchcraft::Cauldron

Inherits:
Object
  • Object
show all
Defined in:
lib/chewy/type/witchcraft.rb

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ Cauldron

Returns a new instance of Cauldron.



43
44
45
# File 'lib/chewy/type/witchcraft.rb', line 43

def initialize(type)
  @type = type
end

Instance Method Details

#brew(object, crutches = nil) ⇒ Object



47
48
49
# File 'lib/chewy/type/witchcraft.rb', line 47

def brew(object, crutches = nil)
  alicorn.call(object, crutches).as_json
end