Class: Portmone::Responses::GenerateURL
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Portmone::Responses::GenerateURL
- Defined in:
- lib/portmone/responses/generate_url.rb
Instance Attribute Summary
Attributes inherited from BaseResponse
Instance Method Summary collapse
Methods inherited from BaseResponse
Constructor Details
This class inherits a constructor from Portmone::Responses::BaseResponse
Instance Method Details
#location ⇒ Object
6 7 8 |
# File 'lib/portmone/responses/generate_url.rb', line 6 def location response.headers['location'] end |
#success? ⇒ Boolean
2 3 4 |
# File 'lib/portmone/responses/generate_url.rb', line 2 def success? location.present? && http_status == 302 end |