Method: EasySwig::ApiNode#initialize
- Defined in:
- lib/apinodes/api_node.rb
#initialize(hash) ⇒ ApiNode
Returns a new instance of ApiNode.
42 43 44 45 46 47 48 49 |
# File 'lib/apinodes/api_node.rb', line 42 def initialize(hash) hash.each_key { |k| send(k.to_s+"=", hash[k]) # TODO features must always come first in the # hash } @basename || @features.infer_native_name(self) unless @target_name.nil? self end |