Class: ExactTargetSDK::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/exact_target_sdk/result.rb

Instance Method Summary collapse

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