Class: CurlAdapter::Response
- Inherits:
-
Object
- Object
- CurlAdapter::Response
- Defined in:
- lib/curl_adapter.rb
Instance Attribute Summary collapse
-
#http_response_code ⇒ Object
readonly
Returns the value of attribute http_response_code.
-
#time_total ⇒ Object
readonly
Returns the value of attribute time_total.
Instance Method Summary collapse
-
#initialize(http_response_code, time_total) ⇒ Response
constructor
A new instance of Response.
- #inspect ⇒ Object
Constructor Details
#initialize(http_response_code, time_total) ⇒ Response
Returns a new instance of Response.
7 8 9 10 |
# File 'lib/curl_adapter.rb', line 7 def initialize(http_response_code, time_total) @http_response_code = http_response_code @time_total = time_total end |
Instance Attribute Details
#http_response_code ⇒ Object (readonly)
Returns the value of attribute http_response_code.
4 5 6 |
# File 'lib/curl_adapter.rb', line 4 def http_response_code @http_response_code end |
#time_total ⇒ Object (readonly)
Returns the value of attribute time_total.
5 6 7 |
# File 'lib/curl_adapter.rb', line 5 def time_total @time_total end |
Instance Method Details
#inspect ⇒ Object
12 13 14 |
# File 'lib/curl_adapter.rb', line 12 def inspect "#{@http_response_code} #{@time_total} sec" end |