Class: Supabase::Functions::Types::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/supabase/functions/types.rb

Overview

Returned by Client#invoke. ‘data` is parsed JSON when response_type: :json (or auto-detected from a JSON Content-Type), otherwise the raw response body.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



8
9
10
# File 'lib/supabase/functions/types.rb', line 8

def data
  @data
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



8
9
10
# File 'lib/supabase/functions/types.rb', line 8

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



8
9
10
# File 'lib/supabase/functions/types.rb', line 8

def status
  @status
end