Sha256: 0142cb4a7268b38a6b8a2656f967483a8ebc42ea5771ef455afb86b559ad273b
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 Bytes
Contents
module RubyPaypalNvp module Model class Balance attr_accessor :currency_code, :subject, :timestamp, :opening_balance def initialize(result) @currency_code = result[:meta]['currency_code'] @subject = result[:meta]['subject'] @timestamp = result[:meta]['timestamp'] @opening_balance = result[:values]['L_AMT'].to_f end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_paypal_nvp-0.1.1 | lib/ruby_paypal_nvp/model/balance.rb |
ruby_paypal_nvp-0.1.0 | lib/ruby_paypal_nvp/model/balance.rb |