Class: TheTracker::Trackers::Transaction
- Inherits:
-
Struct
- Object
- Struct
- TheTracker::Trackers::Transaction
- Defined in:
- lib/the_tracker/trackers/g_analytics.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#id ⇒ Object
Returns the value of attribute id.
-
#shipping ⇒ Object
Returns the value of attribute shipping.
-
#state ⇒ Object
Returns the value of attribute state.
-
#store ⇒ Object
Returns the value of attribute store.
-
#tax ⇒ Object
Returns the value of attribute tax.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city
88 89 90 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 88 def city @city end |
#country ⇒ Object
Returns the value of attribute country
88 89 90 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 88 def country @country end |
#id ⇒ Object
Returns the value of attribute id
88 89 90 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 88 def id @id end |
#shipping ⇒ Object
Returns the value of attribute shipping
88 89 90 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 88 def shipping @shipping end |
#state ⇒ Object
Returns the value of attribute state
88 89 90 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 88 def state @state end |
#store ⇒ Object
Returns the value of attribute store
88 89 90 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 88 def store @store end |
#tax ⇒ Object
Returns the value of attribute tax
88 89 90 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 88 def tax @tax end |
#total ⇒ Object
Returns the value of attribute total
88 89 90 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 88 def total @total end |
Instance Method Details
#add_item(sku, product, category, price, quantity) ⇒ Object
89 90 91 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 89 def add_item(sku, product, category, price, quantity) items << Item.new(sku, product, category, price, quantity) end |
#items ⇒ Object
93 94 95 |
# File 'lib/the_tracker/trackers/g_analytics.rb', line 93 def items @items ||= [] end |