class APIGatewayDSL::Response::Collection

Public Instance Methods

as_json() click to toggle source
# File lib/api_gateway_dsl/response/collection.rb, line 13
def as_json
  index_by(&:status_code).transform_values(&:as_json)
end
content_types() click to toggle source
# File lib/api_gateway_dsl/response/collection.rb, line 5
def content_types
  flat_map(&:content_types).uniq
end
response_integrations() click to toggle source
# File lib/api_gateway_dsl/response/collection.rb, line 9
def response_integrations
  ResponseIntegration::Collection.new.concat(map(&:response_integration))
end