Class: Shades::DimensionComputer
- Inherits:
-
Object
- Object
- Shades::DimensionComputer
- Defined in:
- lib/shades/cube.rb
Instance Method Summary collapse
- #get_value(event) ⇒ Object
-
#initialize(inbound, outbound) ⇒ DimensionComputer
constructor
A new instance of DimensionComputer.
- #outbound_dimension ⇒ Object
Constructor Details
#initialize(inbound, outbound) ⇒ DimensionComputer
Returns a new instance of DimensionComputer.
117 118 119 120 |
# File 'lib/shades/cube.rb', line 117 def initialize(inbound, outbound) @inbound = inbound @outbound = outbound end |
Instance Method Details
#get_value(event) ⇒ Object
126 127 128 |
# File 'lib/shades/cube.rb', line 126 def get_value(event) event.dimension(@inbound) end |
#outbound_dimension ⇒ Object
122 123 124 |
# File 'lib/shades/cube.rb', line 122 def outbound_dimension @outbound end |