Skip to content

Instantly share code, notes, and snippets.

@nmattam
Created March 28, 2016 14:12
Show Gist options
  • Save nmattam/30664915d2b49e57cdb9 to your computer and use it in GitHub Desktop.
Save nmattam/30664915d2b49e57cdb9 to your computer and use it in GitHub Desktop.
2.1.5 :052 > te.at_xpath('/license/payload/expiration_time/text()')
=> #<Nokogiri::XML::Text:0x3fd9088d6398 "1474469242">
2.1.5 :053 > te.at_xpath('/license/payload/expiration_time/text()').to_s
=> "1474469242"
2.1.5 :054 > te.at_xpath('/license/payload/expiration_time/text()').to_s.to_i
=> 1474469242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment