Class: Facturapi::Services::Responses::ObtenerLink
- Inherits:
-
Object
- Object
- Facturapi::Services::Responses::ObtenerLink
- Defined in:
- lib/facturapi/services/responses/obtener_link.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ObtenerLink
constructor
A new instance of ObtenerLink.
- #url ⇒ Object
Constructor Details
#initialize(response) ⇒ ObtenerLink
Returns a new instance of ObtenerLink.
7 8 9 |
# File 'lib/facturapi/services/responses/obtener_link.rb', line 7 def initialize(response) @response = Nokogiri::XML(response) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/facturapi/services/responses/obtener_link.rb', line 5 def response @response end |
Instance Method Details
#url ⇒ Object
11 12 13 |
# File 'lib/facturapi/services/responses/obtener_link.rb', line 11 def url Base64.strict_decode64 response.css('WSPLANO>Mensaje').text end |