Class: Pebblebed::Http::Response
- Inherits:
-
Object
- Object
- Pebblebed::Http::Response
- Defined in:
- lib/pebblebed/http.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, status, body) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(url, status, body) ⇒ Response
Returns a new instance of Response.
77 78 79 80 81 |
# File 'lib/pebblebed/http.rb', line 77 def initialize(url, status, body) @body = body @status = status @url = url end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
83 84 85 |
# File 'lib/pebblebed/http.rb', line 83 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
83 84 85 |
# File 'lib/pebblebed/http.rb', line 83 def status @status end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
83 84 85 |
# File 'lib/pebblebed/http.rb', line 83 def url @url end |