Class: SplitIoClient::Engine::Models::FallbackTreatment

Inherits:
Object
  • Object
show all
Defined in:
lib/splitclient-rb/engine/models/fallback_treatment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(treatment, config = nil, label = nil) ⇒ FallbackTreatment



5
6
7
8
9
# File 'lib/splitclient-rb/engine/models/fallback_treatment.rb', line 5

def initialize(treatment, config=nil, label=nil)
    @treatment = treatment
    @config = config
    @label = label
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/splitclient-rb/engine/models/fallback_treatment.rb', line 3

def config
  @config
end

#labelObject

Returns the value of attribute label.



3
4
5
# File 'lib/splitclient-rb/engine/models/fallback_treatment.rb', line 3

def label
  @label
end

#treatmentObject

Returns the value of attribute treatment.



3
4
5
# File 'lib/splitclient-rb/engine/models/fallback_treatment.rb', line 3

def treatment
  @treatment
end