Class: Rox::Core::ReportingValue
- Inherits:
-
Object
- Object
- Rox::Core::ReportingValue
- Defined in:
- lib/rox/core/impression/models/reporting_value.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#targeting ⇒ Object
readonly
Returns the value of attribute targeting.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, experiment = nil) ⇒ ReportingValue
constructor
A new instance of ReportingValue.
Constructor Details
#initialize(name, value, experiment = nil) ⇒ ReportingValue
Returns a new instance of ReportingValue.
6 7 8 9 10 |
# File 'lib/rox/core/impression/models/reporting_value.rb', line 6 def initialize(name, value, experiment = nil) @name = name @value = value @targeting = !experiment.nil? end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/rox/core/impression/models/reporting_value.rb', line 4 def name @name end |
#targeting ⇒ Object (readonly)
Returns the value of attribute targeting.
4 5 6 |
# File 'lib/rox/core/impression/models/reporting_value.rb', line 4 def targeting @targeting end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/rox/core/impression/models/reporting_value.rb', line 4 def value @value end |