Sha256: 138e330d27389e828dc1d54a53ea88af27f8d5ec51af7c62b12f59492266ea7c
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
# frozen_string_literal: true module Qravan class Response attr_accessor :request attr_accessor :resources attr_accessor :credentials def initialize(request) @request ||= request @resources = request.resources @credentials = request.credentials end def validate @request end def answer { "response": @resources, "credentials": Qravan::Credentials::Query.new(@credentials).credentials }.to_json end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qravan-0.1.1 | lib/qravan/query/response.rb |
qravan-0.1.0 | lib/qravan/query/response.rb |