Class: Hypesets::Estimation
- Inherits:
-
Object
- Object
- Hypesets::Estimation
- Defined in:
- lib/hypesets/estimation.rb
Instance Attribute Summary collapse
-
#cardinality ⇒ Object
readonly
Returns the value of attribute cardinality.
-
#set_name ⇒ Object
readonly
Returns the value of attribute set_name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(set_name, cardinality) ⇒ Estimation
constructor
A new instance of Estimation.
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
#cardinality ⇒ Object (readonly)
Returns the value of attribute cardinality.
3 4 5 |
# File 'lib/hypesets/estimation.rb', line 3 def cardinality @cardinality end |
#set_name ⇒ Object (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 |