Module: Mixpannenkoek::Results
- Defined in:
- lib/mixpannenkoek/results.rb,
lib/mixpannenkoek/results/base.rb,
lib/mixpannenkoek/results/funnels.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.new(endpoint, response_data) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/mixpannenkoek/results.rb', line 3 def self.new(endpoint, response_data) klass = case endpoint when 'funnels' Mixpannenkoek::Results::Funnels else Mixpannenkoek::Results::Base end klass.new(response_data) end |