Class: GoApiClient::Parsers::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/go_api_client/parsers/parser_helper.rb

Class Method Summary collapse

Class Method Details

.href_from(xml) ⇒ Object



5
6
7
# File 'lib/go_api_client/parsers/parser_helper.rb', line 5

def href_from(xml)
  xml.first.attribute('href').value unless xml.empty?
end