Class: Google4R::Checkout::ParameterizedUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/google4r/checkout/shared.rb

Overview

ParamaterizedUrl instances are used

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ ParameterizedUrl

Returns a new instance of ParameterizedUrl.



1298
1299
1300
1301
# File 'lib/google4r/checkout/shared.rb', line 1298

def initialize(url)
  @url = url.to_s
  @url_parameters = Array.new
end

Instance Attribute Details

#urlObject

The third party conversion tracker URL



1293
1294
1295
# File 'lib/google4r/checkout/shared.rb', line 1293

def url
  @url
end

#url_parametersObject (readonly)

Paramters passed to the third party conversion tracker - Read Only



1296
1297
1298
# File 'lib/google4r/checkout/shared.rb', line 1296

def url_parameters
  @url_parameters
end

Instance Method Details

#create_url_parameter(opts) ⇒ Object

UrlParameters can be created (recommended) using this method by passing in a hash containing values for the :name of the parameter as is it to be provided to the third party conversion tracker, and the :parameter_type that has a valued assigned by Google Checkout



1306
1307
1308
1309
1310
1311
# File 'lib/google4r/checkout/shared.rb', line 1306

def create_url_parameter(opts)
  url_parameter = UrlParameter.new(self,opts)
  @url_parameters << url_parameter   
  
  return url_parameter
end