Class: Google4R::Checkout::ParameterizedUrl
- Inherits:
-
Object
- Object
- Google4R::Checkout::ParameterizedUrl
- Defined in:
- lib/google4r/checkout/shared.rb
Overview
ParamaterizedUrl instances are used
Instance Attribute Summary collapse
-
#url ⇒ Object
The third party conversion tracker URL.
-
#url_parameters ⇒ Object
readonly
Paramters passed to the third party conversion tracker - Read Only.
Instance Method Summary collapse
-
#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.
-
#initialize(url) ⇒ ParameterizedUrl
constructor
A new instance of ParameterizedUrl.
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
#url ⇒ Object
The third party conversion tracker URL
1293 1294 1295 |
# File 'lib/google4r/checkout/shared.rb', line 1293 def url @url end |
#url_parameters ⇒ Object (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 |