Class: SplitIoClient::KeyImpressions
- Inherits:
-
Object
- Object
- SplitIoClient::KeyImpressions
- Defined in:
- lib/engine/impressions/impressions.rb
Overview
small class to use as DTO for impressions
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#time ⇒ Object
Returns the value of attribute time.
-
#treatment ⇒ Object
Returns the value of attribute treatment.
Instance Method Summary collapse
-
#initialize(key, treatment, time) ⇒ KeyImpressions
constructor
A new instance of KeyImpressions.
Constructor Details
#initialize(key, treatment, time) ⇒ KeyImpressions
Returns a new instance of KeyImpressions.
72 73 74 75 76 |
# File 'lib/engine/impressions/impressions.rb', line 72 def initialize(key, treatment, time) @key = key @treatment = treatment @time = time end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
68 69 70 |
# File 'lib/engine/impressions/impressions.rb', line 68 def key @key end |
#time ⇒ Object
Returns the value of attribute time.
70 71 72 |
# File 'lib/engine/impressions/impressions.rb', line 70 def time @time end |
#treatment ⇒ Object
Returns the value of attribute treatment.
69 70 71 |
# File 'lib/engine/impressions/impressions.rb', line 69 def treatment @treatment end |