Class: Flexirest::PlainResponse
- Inherits:
-
String
- Object
- String
- Flexirest::PlainResponse
- Defined in:
- lib/flexirest/plain_response.rb
Instance Attribute Summary collapse
-
#_headers ⇒ Object
Returns the value of attribute _headers.
-
#_status ⇒ Object
Returns the value of attribute _status.
Class Method Summary collapse
Instance Attribute Details
#_headers ⇒ Object
Returns the value of attribute _headers.
4 5 6 |
# File 'lib/flexirest/plain_response.rb', line 4 def _headers @_headers end |
#_status ⇒ Object
Returns the value of attribute _status.
3 4 5 |
# File 'lib/flexirest/plain_response.rb', line 3 def _status @_status end |
Class Method Details
.from_response(response) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/flexirest/plain_response.rb', line 6 def self.from_response(response) plain = self.new(response.body) plain._status = response.status plain._headers = response.response_headers plain end |