Class: Experian::Report
- Inherits:
-
Object
- Object
- Experian::Report
- Defined in:
- lib/experian/report.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#raw_xml ⇒ Object
readonly
Returns the value of attribute raw_xml.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(response) ⇒ Report
constructor
A new instance of Report.
Constructor Details
#initialize(response) ⇒ Report
Returns a new instance of Report.
8 9 10 11 12 13 14 15 16 |
# File 'lib/experian/report.rb', line 8 def initialize(response) @response = response @url = response.env.url.to_s @raw_xml = response.body MultiXml.parser = :rexml @xml = MultiXml.parse(@raw_xml) raise error, if error end |
Instance Attribute Details
#raw_xml ⇒ Object (readonly)
Returns the value of attribute raw_xml.
6 7 8 |
# File 'lib/experian/report.rb', line 6 def raw_xml @raw_xml end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/experian/report.rb', line 6 def response @response end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/experian/report.rb', line 6 def url @url end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
6 7 8 |
# File 'lib/experian/report.rb', line 6 def xml @xml end |