Class: Shades::DimensionComputer

Inherits:
Object
  • Object
show all
Defined in:
lib/shades/cube.rb

Instance Method Summary collapse

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_dimensionObject



122
123
124
# File 'lib/shades/cube.rb', line 122

def outbound_dimension
  @outbound
end