Class: SplitIoClient::KeyImpressions

Inherits:
Object
  • Object
show all
Defined in:
lib/engine/impressions/impressions.rb

Overview

small class to use as DTO for impressions

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject

Returns the value of attribute key.



68
69
70
# File 'lib/engine/impressions/impressions.rb', line 68

def key
  @key
end

#timeObject

Returns the value of attribute time.



70
71
72
# File 'lib/engine/impressions/impressions.rb', line 70

def time
  @time
end

#treatmentObject

Returns the value of attribute treatment.



69
70
71
# File 'lib/engine/impressions/impressions.rb', line 69

def treatment
  @treatment
end