Module: Trailblazer::V1_1::Operation::Representer::Deserializer::Hash
- Defined in:
- lib/trailblazer/1.1/operation/representer.rb
Instance Method Summary collapse
Instance Method Details
#validate_contract(params) ⇒ Object
78 79 80 81 82 83 |
# File 'lib/trailblazer/1.1/operation/representer.rb', line 78 def validate_contract(params) # use the inferred representer from the contract for deserialization in #validate. contract.validate(params) do |document| self.class.representer_class.new(contract).from_hash(document) end end |