Class: Weaviate::Connection::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/weaviate/connection.rb,
sig/weaviate.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#body ⇒ Object

Returns the value of attribute body

Returns:

  • (Object) —

    the current value of body



12
13
14
# File 'lib/weaviate/connection.rb', line 12

def body
  @body
end

#headers ⇒ Object

Returns the value of attribute headers

Returns:

  • (Object) —

    the current value of headers



12
13
14
# File 'lib/weaviate/connection.rb', line 12

def headers
  @headers
end

#reason_phrase ⇒ Object

Returns the value of attribute reason_phrase

Returns:

  • (Object) —

    the current value of reason_phrase



12
13
14
# File 'lib/weaviate/connection.rb', line 12

def reason_phrase
  @reason_phrase
end

#status ⇒ Object

Returns the value of attribute status

Returns:

  • (Object) —

    the current value of status



12
13
14
# File 'lib/weaviate/connection.rb', line 12

def status
  @status
end

Instance Method Details

#success? ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/weaviate/connection.rb', line 13

def success?
  (200..299).cover?(status)
end