Class: Hypesets::Estimation

Inherits:
Object
  • Object
show all
Defined in:
lib/hypesets/estimation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(set_name, cardinality) ⇒ Estimation

Returns a new instance of Estimation.



5
6
7
8
# File 'lib/hypesets/estimation.rb', line 5

def initialize(set_name, cardinality)
  @set_name = set_name
  @cardinality = cardinality
end

Instance Attribute Details

#cardinalityObject (readonly)

Returns the value of attribute cardinality.



3
4
5
# File 'lib/hypesets/estimation.rb', line 3

def cardinality
  @cardinality
end

#set_nameObject (readonly)

Returns the value of attribute set_name.



3
4
5
# File 'lib/hypesets/estimation.rb', line 3

def set_name
  @set_name
end

Instance Method Details

#==(other) ⇒ Object



10
11
12
# File 'lib/hypesets/estimation.rb', line 10

def ==(other)
  @set_name == other.set_name && @cardinality == other.cardinality
end