Class: DwollaV2::Portal

Inherits:
Object
  • Object
show all
Defined in:
lib/dwolla_v2/portal.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, klass) ⇒ Portal

Returns a new instance of Portal.



3
4
5
6
# File 'lib/dwolla_v2/portal.rb', line 3

def initialize parent, klass
  @parent = parent
  @klass = klass
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



8
9
10
# File 'lib/dwolla_v2/portal.rb', line 8

def method_missing method, *args, &block
  @klass.public_send method, @parent, *args, &block
end