Module: Sanity::Queryable::ClassMethods

Defined in:
lib/sanity/queryable.rb

Constant Summary collapse

DEFAULT_KLASS_QUERIES =
%i[find where].freeze
QUERY_ENDPOINTS =
{
  find: "data/doc",
  where: "data/query"
}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#document_typeObject

Returns the value of attribute document_type.



31
32
33
# File 'lib/sanity/queryable.rb', line 31

def document_type
  @document_type
end