Class: LendingTree::Parse

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

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Parse

Returns a new instance of Parse.



6
7
8
# File 'lib/lending_tree.rb', line 6

def initialize(params)
	@params = params
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *ids) ⇒ Object



10
11
12
13
14
# File 'lib/lending_tree.rb', line 10

def method_missing(symbol, *ids)
	@params[symbol] || nil
rescue
	super
end