Sha256: cfab728ac2f387325411ef20c4026ecdb55642e9717c9d579d02611b183663a7

Contents?: true

Size: 357 Bytes

Versions: 17

Compression:

Stored size: 357 Bytes

Contents

module SplitIoClient
  module Engine
    module Models
      class Split
        def initialize(data)
          @data = data
        end

        def matchable?
          @data && @data[:status] == 'ACTIVE' && @data[:killed] == false
        end

        def archived?
          @data && @data[:status] == 'ARCHIVED'
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
splitclient-rb-3.2.2 lib/engine/models/split.rb
splitclient-rb-3.2.1 lib/engine/models/split.rb
splitclient-rb-3.2.0 lib/engine/models/split.rb
splitclient-rb-3.1.3 lib/engine/models/split.rb
splitclient-rb-3.1.3.pre.rc3 lib/engine/models/split.rb
splitclient-rb-3.1.3.pre.rc2 lib/engine/models/split.rb
splitclient-rb-3.1.3.pre.rc1 lib/engine/models/split.rb
splitclient-rb-3.1.2 lib/engine/models/split.rb
splitclient-rb-3.1.1 lib/engine/models/split.rb
splitclient-rb-3.1.0 lib/engine/models/split.rb
splitclient-rb-3.1.0.pre.rc12 lib/engine/models/split.rb
splitclient-rb-3.1.0.pre.rc11 lib/engine/models/split.rb
splitclient-rb-3.1.0.pre.rc10 lib/engine/models/split.rb
splitclient-rb-3.1.0.pre.rc9 lib/engine/models/split.rb
splitclient-rb-3.1.0.pre.rc8 lib/engine/models/split.rb
splitclient-rb-3.1.0.pre.rc7 lib/engine/models/split.rb
splitclient-rb-3.1.0.pre.rc6 lib/engine/models/split.rb