Class: DwollaV2::Portal
- Inherits:
-
Object
- Object
- DwollaV2::Portal
- Defined in:
- lib/dwolla_v2/portal.rb
Instance Method Summary collapse
-
#initialize(parent, klass) ⇒ Portal
constructor
A new instance of Portal.
- #method_missing(method, *args, &block) ⇒ Object
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 |