Sha256: 043090c50e4b29245d06ad986c92b0e5237a9420cc79a244a6b5acff093d2ed6
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
module Pxpay class Notification mattr_accessor :order_details attr_accessor :hash, :xml def initialize(response) @hash = parse(response) @xml = response end def parse(response) require 'nokogiri' doc = Nokogiri::XML(response) hash = {} doc.at_css("Response").element_children.each do |attribute| hash[attribute.name.underscore.to_sym] = attribute.inner_text# if ::Pxpay::Base.return_details.include?(attribute.name) end hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pxpay-0.1.0 | lib/pxpay/notification.rb |