Sha256: c713bde0a4ffa213affae5d9eca068cf99b1a8ffbd992d378b488033595f1500
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 Bytes
Contents
module Pacto module Formats module Legacy class ResponseClause include Pacto::ResponseClause extend Forwardable attr_reader :data def_delegators :data, :to_hash def_delegators :data, :status, :headers, :schema def_delegators :data, :status=, :headers=, :schema= class Data < Pacto::Dash property :status property :headers, default: {} property :schema, default: {} end def initialize(data) skip_freeze = data.delete(:skip_freeze) @data = Data.new(data) freeze unless skip_freeze end def freeze @data.freeze self end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc3 | lib/pacto/formats/legacy/response_clause.rb |
pacto-0.4.0.rc2 | lib/pacto/formats/legacy/response_clause.rb |