Class: Casino::Dimension
- Inherits:
-
Object
- Object
- Casino::Dimension
- Defined in:
- lib/casino/dimension.rb
Instance Attribute Summary collapse
-
#approach ⇒ Object
Returns the value of attribute approach.
-
#field ⇒ Object
Returns the value of attribute field.
-
#label ⇒ Object
Returns the value of attribute label.
-
#queries ⇒ Object
Returns the value of attribute queries.
Instance Method Summary collapse
-
#initialize(label, field, queries, approach = Hash.new) ⇒ Dimension
constructor
A new instance of Dimension.
Constructor Details
#initialize(label, field, queries, approach = Hash.new) ⇒ Dimension
Returns a new instance of Dimension.
4 5 6 7 8 9 |
# File 'lib/casino/dimension.rb', line 4 def initialize(label, field, queries, approach = Hash.new) self.label = label self.field = field self.queries = queries self.approach = { operator: :where }.merge(approach) end |
Instance Attribute Details
#approach ⇒ Object
Returns the value of attribute approach.
3 4 5 |
# File 'lib/casino/dimension.rb', line 3 def approach @approach end |
#field ⇒ Object
Returns the value of attribute field.
3 4 5 |
# File 'lib/casino/dimension.rb', line 3 def field @field end |
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/casino/dimension.rb', line 3 def label @label end |
#queries ⇒ Object
Returns the value of attribute queries.
3 4 5 |
# File 'lib/casino/dimension.rb', line 3 def queries @queries end |