Sha256: 07ed7c3cda3331c6561e42b5b96732db3f626c2332249f5f16e825a65a37291f
Contents?: true
Size: 543 Bytes
Versions: 3
Compression:
Stored size: 543 Bytes
Contents
module Webmoney::RequestResult # :nodoc:all def result_check_sign(doc) doc.at('//testsign/res').inner_html == 'yes' ? true : false end def result_get_passport(doc) Webmoney::Passport.new(doc) end def result_bussines_level(doc) doc.at('//level').inner_html.to_i end def result_send_message(doc) time = doc.at('//message/datecrt').inner_html m = time.match(/(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})/) time = Time.mktime(*m[1..6]) { :id => doc.at('//message')['id'], :date => time } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webmoney-0.0.4.5 | lib/result.rb |
webmoney-0.0.4.6 | lib/result.rb |
webmoney-0.0.4.4 | lib/result.rb |