Class: CurlImpersonate::Response
- Inherits:
-
Struct
- Object
- Struct
- CurlImpersonate::Response
- Defined in:
- lib/curl_impersonate/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
2 3 4 |
# File 'lib/curl_impersonate/response.rb', line 2 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
2 3 4 |
# File 'lib/curl_impersonate/response.rb', line 2 def headers @headers end |
#status_code ⇒ Object
Returns the value of attribute status_code
2 3 4 |
# File 'lib/curl_impersonate/response.rb', line 2 def status_code @status_code end |
Instance Method Details
#success? ⇒ Boolean
3 4 5 |
# File 'lib/curl_impersonate/response.rb', line 3 def success? (200..299).cover?(status_code) end |