class Pacto::ResponseClause
Attributes
headers[R]
schema[R]
status[R]
Public Class Methods
new(definition)
click to toggle source
# File lib/pacto/response_clause.rb, line 5 def initialize(definition) @status = definition['status'] @headers = definition['headers'] @schema = definition['body'] || {} end
Public Instance Methods
body()
click to toggle source
# File lib/pacto/response_clause.rb, line 11 def body @body ||= JSON::Generator.generate(schema) end