Method: Qdocs::Helpers#render_response

Defined in:
lib/qdocs.rb

#render_response(const, type, attrs) ⇒ Object



46
47
48
49
50
51
52
53
54
55
56
# File 'lib/qdocs.rb', line 46

def render_response(const, type, attrs)
  {
    original_input: @original_input,
    constant: {
      name: const.name,
      type: const.class.name,
    },
    query_type: type,
    attributes: attrs,
  }
end