Class: GusBir1::Response::FullData
- Inherits:
-
Object
- Object
- GusBir1::Response::FullData
- Defined in:
- lib/gus_bir1/response/full_data.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(body) ⇒ FullData
constructor
A new instance of FullData.
- #to_h ⇒ Object
Constructor Details
#initialize(body) ⇒ FullData
Returns a new instance of FullData.
6 7 8 |
# File 'lib/gus_bir1/response/full_data.rb', line 6 def initialize(body) @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
10 11 12 |
# File 'lib/gus_bir1/response/full_data.rb', line 10 def body @body end |
Instance Method Details
#to_h ⇒ Object
12 13 14 15 |
# File 'lib/gus_bir1/response/full_data.rb', line 12 def to_h n = Nokogiri.XML body Nori.new.parse(n.xpath('//dane').to_s)['dane'] end |