class Sanity::Http::Results

Attributes

raw_result[R]

Public Class Methods

call(result) click to toggle source
# File lib/sanity/http/results.rb, line 7
def call(result)
  new(result).call
end
new(result) click to toggle source
# File lib/sanity/http/results.rb, line 14
def initialize(result)
  @raw_result = result
end

Public Instance Methods

call() click to toggle source

TODO: parse the JSON and return what the user asked for whether that just be the response, the document ids, or the the document object(s) the user mutated

# File lib/sanity/http/results.rb, line 21
def call
  raw_result
end