Method: TinyClient::Response#initialize
- Defined in:
- lib/tiny_client/response.rb
#initialize(curb) ⇒ Response
Returns a new instance of Response.
9 10 11 12 13 14 15 |
# File 'lib/tiny_client/response.rb', line 9 def initialize(curb) @url = curb.url @body_str = curb.body_str @header_str = curb.header_str @status = curb.status @code = @status.to_i end |