Class: UtmTracker::Matcher
- Inherits:
-
Object
- Object
- UtmTracker::Matcher
- Defined in:
- lib/utm_tracker/matcher.rb
Instance Attribute Summary collapse
-
#utm ⇒ Object
Returns the value of attribute utm.
-
#utm_data ⇒ Object
Returns the value of attribute utm_data.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(utm_data, utm = {}) ⇒ Matcher
constructor
A new instance of Matcher.
Constructor Details
#initialize(utm_data, utm = {}) ⇒ Matcher
Returns a new instance of Matcher.
7 8 9 10 |
# File 'lib/utm_tracker/matcher.rb', line 7 def initialize(utm_data, utm = {}) @utm_data = utm_data.transform_keys!(&:to_sym) @utm = utm end |
Instance Attribute Details
#utm ⇒ Object
Returns the value of attribute utm.
5 6 7 |
# File 'lib/utm_tracker/matcher.rb', line 5 def utm @utm end |
#utm_data ⇒ Object
Returns the value of attribute utm_data.
5 6 7 |
# File 'lib/utm_tracker/matcher.rb', line 5 def utm_data @utm_data end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/utm_tracker/matcher.rb', line 12 def call utm_source utm_content utm_medium utm_campaign utm_term end |