Sha256: 85274c1b8a1c3ec92ea6656fbf9c453fbe806d091639fd3ee00dbcde8a54087a
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 Bytes
Contents
# frozen_string_literal: true module Qravan # Models for data extractions class class Model attr_accessor :models def initialize(cargo = {}) @models ||= cargo.models end def call(env) body = [models.to_json] status = 200 headers = { "content-type" => "application/json" } [status, headers, body] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qravan-0.1.1 | lib/qravan/model.rb |
qravan-0.1.0 | lib/qravan/model.rb |