Class: Sanity::Http::Find

Inherits:
Object
  • Object
show all
Includes:
Query
Defined in:
lib/sanity/http/find.rb

Instance Attribute Summary collapse

Attributes included from Query

#resource_klass, #serializer

Instance Method Summary collapse

Methods included from Query

#call, included, #result_wrapper

Constructor Details

#initialize(**args) ⇒ Find

Returns a new instance of Find.



12
13
14
15
# File 'lib/sanity/http/find.rb', line 12

def initialize(**args)
  super
  @id = args.delete(:id)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



10
11
12
# File 'lib/sanity/http/find.rb', line 10

def id
  @id
end