Class: Reactor::ResponseHandler::XmlAttribute

Inherits:
Base
  • Object
show all
Defined in:
lib/reactor/tools/response_handler/xml_attribute.rb

Instance Attribute Summary

Attributes inherited from Base

#context, #response

Instance Method Summary collapse

Instance Method Details

#get(response, attribute) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/reactor/tools/response_handler/xml_attribute.rb', line 10

def get(response, attribute)
  super(response, attribute)

  name = attribute.name
  type = attribute.type

  method_name = "extract_#{type}"

  self.send(method_name, name)
end