Class: Strum::JsonSchema::Cast
- Inherits:
-
Object
- Object
- Strum::JsonSchema::Cast
- Includes:
- Service
- Defined in:
- lib/strum/json_schema/cast.rb
Instance Method Summary collapse
Methods included from Service
#errors, #execute, #failure, #hook, included, #initialize, #method_missing, #on, #respond_to_missing?, #success, #valid?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Strum::Service
Instance Method Details
#audit ⇒ Object
14 15 16 |
# File 'lib/strum/json_schema/cast.rb', line 14 def audit add_error(:schema, :not_found) if !args[:schema].is_a?(Hash) end |
#call ⇒ Object
10 11 12 |
# File 'lib/strum/json_schema/cast.rb', line 10 def call output(casted(input, args[:schema])) end |