Class: Portmone::Responses::GenerateURL

Inherits:
BaseResponse show all
Defined in:
lib/portmone/responses/generate_url.rb

Instance Attribute Summary

Attributes inherited from BaseResponse

#response, #xml_data

Instance Method Summary collapse

Methods inherited from BaseResponse

#http_status, #initialize

Constructor Details

This class inherits a constructor from Portmone::Responses::BaseResponse

Instance Method Details

#locationObject



6
7
8
# File 'lib/portmone/responses/generate_url.rb', line 6

def location
  response.headers['location']
end

#success?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/portmone/responses/generate_url.rb', line 2

def success?
  location.present? && http_status == 302
end