Class: Rox::Core::ReportingValue

Inherits:
Object
  • Object
show all
Defined in:
lib/rox/core/impression/models/reporting_value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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

#targetingObject (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

#valueObject (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