Class: Strum::Json::Schema::Cast
- Inherits:
-
Object
- Object
- Strum::Json::Schema::Cast
- Includes:
- Service
- Defined in:
- lib/strum/json/schema/cast.rb
Instance Method Summary collapse
Instance Method Details
#audit ⇒ Object
15 16 17 |
# File 'lib/strum/json/schema/cast.rb', line 15 def audit add_error(:schema, :not_found) unless args[:schema].is_a?(Hash) end |
#call ⇒ Object
11 12 13 |
# File 'lib/strum/json/schema/cast.rb', line 11 def call output(casted(input, args[:schema])) end |