Sha256: 548a5105c87d7b935a808603a109f4b5b55d82455da28ba723ff8c2c56460607
Contents?: true
Size: 652 Bytes
Versions: 47
Compression:
Stored size: 652 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? ? true : false end end end
Version data entries
47 entries across 47 versions & 1 rubygems