Sha256: 37421e09dbd4c200757f7d38009c112a9fa690f2bc33c77cb0cee94a5c0f695f

Contents?: true

Size: 199 Bytes

Versions: 16

Compression:

Stored size: 199 Bytes

Contents

class Portmone::Responses::GenerateURL < Portmone::Responses::BaseResponse
  def success?
    location.present? && http_status == 302
  end

  def location
    response.headers['location']
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
portmone-0.0.16 lib/portmone/responses/generate_url.rb
portmone-0.0.15 lib/portmone/responses/generate_url.rb
portmone-0.0.14 lib/portmone/responses/generate_url.rb
portmone-0.0.13 lib/portmone/responses/generate_url.rb
portmone-0.0.12 lib/portmone/responses/generate_url.rb
portmone-0.0.11 lib/portmone/responses/generate_url.rb
portmone-0.0.10 lib/portmone/responses/generate_url.rb
portmone-0.0.9 lib/portmone/responses/generate_url.rb
portmone-0.0.8 lib/portmone/responses/generate_url.rb
portmone-0.0.7 lib/portmone/responses/generate_url.rb
portmone-0.0.6 lib/portmone/responses/generate_url.rb
portmone-0.0.5 lib/portmone/responses/generate_url.rb
portmone-0.0.4 lib/portmone/responses/generate_url.rb
portmone-0.0.3 lib/portmone/responses/generate_url.rb
portmone-0.0.2 lib/portmone/responses/generate_url.rb
portmone-0.0.1 lib/portmone/responses/generate_url.rb