Sha256: 0b0e45e0f726ac75913b572fa4753998d995655c1dbf2e7b42c984e3e42af7d8
Contents?: true
Size: 825 Bytes
Versions: 2
Compression:
Stored size: 825 Bytes
Contents
module RubyPaypalNvp class Configuration attr_writer :version, :user, :password, :signature, :subject, :api_url def initialize Time.zone = 'Prague' @version = nil @user = nil @password = nil @signature = nil @subject = nil end def version return '204.0' unless @version @version end def user raise ConfigNotSet, 'user' unless @user @user end def password raise ConfigNotSet, 'password' unless @password @password end def signature raise ConfigNotSet, 'signature' unless @signature @signature end def subject raise ConfigNotSet, 'subject' unless @subject @subject end def api_url raise ConfigNotSet, 'api_url' unless @api_url @api_url 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/configuration.rb |
ruby_paypal_nvp-0.1.0 | lib/ruby_paypal_nvp/configuration.rb |