Class: Mixpannenkoek::Results::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mixpannenkoek/results/base.rb

Direct Known Subclasses

Funnels

Instance Method Summary collapse

Constructor Details

#initialize(response_data) ⇒ Base

Returns a new instance of Base.



4
5
6
# File 'lib/mixpannenkoek/results/base.rb', line 4

def initialize(response_data)
  @response_data = response_data
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



16
17
18
# File 'lib/mixpannenkoek/results/base.rb', line 16

def method_missing(*args, &block)
  to_hash.send(*args, &block)
end

Instance Method Details

#response_dataObject



8
9
10
# File 'lib/mixpannenkoek/results/base.rb', line 8

def response_data
  @response_data
end

#to_hashObject



12
13
14
# File 'lib/mixpannenkoek/results/base.rb', line 12

def to_hash
  @response_data
end