Class: ExactTargetSDK::Result
- Inherits:
-
Object
- Object
- ExactTargetSDK::Result
- Defined in:
- lib/exact_target_sdk/result.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(hash) ⇒ Result
constructor
A new instance of Result.
- #method_missing(symbol, *args) ⇒ Object
Constructor Details
#initialize(hash) ⇒ Result
Returns a new instance of Result.
6 7 8 |
# File 'lib/exact_target_sdk/result.rb', line 6 def initialize(hash) @result = hash end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args) ⇒ Object
10 11 12 |
# File 'lib/exact_target_sdk/result.rb', line 10 def method_missing(symbol, *args) @result[symbol.to_s.underscore.to_sym] end |