Class: Tracking::Tracker::TrackResult
- Inherits:
-
Data
- Object
- Data
- Tracking::Tracker::TrackResult
- Defined in:
- app/services/tracking/tracker.rb
Overview
Main method to track an action
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#track_visit ⇒ Object
readonly
Returns the value of attribute track_visit.
-
#visit ⇒ Object
readonly
Returns the value of attribute visit.
-
#visit_event ⇒ Object
readonly
Returns the value of attribute visit_event.
Instance Method Summary collapse
-
#initialize(track_visit: nil, visit: nil, visit_event: nil, message: nil) ⇒ TrackResult
constructor
A new instance of TrackResult.
- #track_visit? ⇒ Boolean
Constructor Details
#initialize(track_visit: nil, visit: nil, visit_event: nil, message: nil) ⇒ TrackResult
Returns a new instance of TrackResult.
110 |
# File 'app/services/tracking/tracker.rb', line 110 def initialize(track_visit: nil, visit: nil, visit_event: nil, message: nil) = super |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
109 110 111 |
# File 'app/services/tracking/tracker.rb', line 109 def @message end |
#track_visit ⇒ Object (readonly)
Returns the value of attribute track_visit
109 110 111 |
# File 'app/services/tracking/tracker.rb', line 109 def track_visit @track_visit end |
#visit ⇒ Object (readonly)
Returns the value of attribute visit
109 110 111 |
# File 'app/services/tracking/tracker.rb', line 109 def visit @visit end |
#visit_event ⇒ Object (readonly)
Returns the value of attribute visit_event
109 110 111 |
# File 'app/services/tracking/tracker.rb', line 109 def visit_event @visit_event end |
Instance Method Details
#track_visit? ⇒ Boolean
111 |
# File 'app/services/tracking/tracker.rb', line 111 def track_visit? = track_visit |