Class: Stargate::Response::BasicResponse
- Inherits:
-
Object
- Object
- Stargate::Response::BasicResponse
show all
- Defined in:
- lib/stargate/response/basic_response.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BasicResponse.
12
13
14
|
# File 'lib/stargate/response/basic_response.rb', line 12
def initialize(raw_data)
@raw_data = raw_data
end
|
Instance Method Details
#parse ⇒ Object
16
17
18
|
# File 'lib/stargate/response/basic_response.rb', line 16
def parse
parse_content @raw_data
end
|
#verify_success(response) ⇒ Object
20
21
22
23
24
25
26
27
|
# File 'lib/stargate/response/basic_response.rb', line 20
def verify_success(response)
case response
when Net::HTTPSuccess
true
else
false
end
end
|