Sha256: bddf0fc6c74ebeb8c292a50e0adef55be550e641a29e31cce37e1fbfcf433074
Contents?: true
Size: 636 Bytes
Versions: 402
Compression:
Stored size: 636 Bytes
Contents
module SplitIoClient # # acts as dto for a partition structure # class Partition < NoMethodError # # definition of the condition # # @returns [object] condition values attr_accessor :data def initialize(partition) @data = partition end # # @return [object] the treatment value for this partition def treatment @data[:treatment] end # # @return [object] the size value for this partition def size @data[:size] end # # @return [boolean] true if the partition is empty false otherwise def is_empty? @data.empty? end end end
Version data entries
402 entries across 402 versions & 1 rubygems