Class: Rager::Http::Response

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/rager/http/response.rb

Instance Method Summary collapse

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/rager/http/response.rb', line 16

def success?
  status >= 200 && status < 300
end