Class: Cosing::Ingredient

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/cosing/ingredient.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



16
17
18
# File 'lib/cosing/ingredient.rb', line 16

def inspect
  to_h
end

#to_jsonObject



20
21
22
# File 'lib/cosing/ingredient.rb', line 20

def to_json(...)
  to_h.to_json(...)
end