Class: RubyPaypalNvp::Configuration
- Inherits:
-
Object
- Object
- RubyPaypalNvp::Configuration
- Defined in:
- lib/ruby_paypal_nvp/configuration.rb
Instance Attribute Summary collapse
- #api_url ⇒ Object
- #password ⇒ Object
- #signature ⇒ Object
- #subject ⇒ Object
- #user ⇒ Object
- #version ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 |
# File 'lib/ruby_paypal_nvp/configuration.rb', line 5 def initialize Time.zone = 'Prague' @version = nil @user = nil @password = nil @signature = nil @subject = nil end |
Instance Attribute Details
#api_url ⇒ Object
39 40 41 42 |
# File 'lib/ruby_paypal_nvp/configuration.rb', line 39 def api_url raise ConfigNotSet, 'api_url' unless @api_url @api_url end |
#password ⇒ Object
24 25 26 27 |
# File 'lib/ruby_paypal_nvp/configuration.rb', line 24 def password raise ConfigNotSet, 'password' unless @password @password end |
#signature ⇒ Object
29 30 31 32 |
# File 'lib/ruby_paypal_nvp/configuration.rb', line 29 def signature raise ConfigNotSet, 'signature' unless @signature @signature end |
#subject ⇒ Object
34 35 36 37 |
# File 'lib/ruby_paypal_nvp/configuration.rb', line 34 def subject raise ConfigNotSet, 'subject' unless @subject @subject end |
#user ⇒ Object
19 20 21 22 |
# File 'lib/ruby_paypal_nvp/configuration.rb', line 19 def user raise ConfigNotSet, 'user' unless @user @user end |
#version ⇒ Object
14 15 16 17 |
# File 'lib/ruby_paypal_nvp/configuration.rb', line 14 def version return '204.0' unless @version @version end |