class SplitIoClient::Partition


acts as dto for a partition structure

def initialize(partition)

def initialize(partition)
  @data = partition
end

def is_empty?

Returns:
  • (boolean) - true if the partition is empty false otherwise
def is_empty?
  @data.empty?
end

def size

Returns:
  • (object) - the size value for this partition
def size
  @data[:size]
end

def treatment

Returns:
  • (object) - the treatment value for this partition
def treatment
  @data[:treatment]
end