Class: RubyPaypalNvp::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_paypal_nvp/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_urlObject

Raises:



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

#passwordObject

Raises:



24
25
26
27
# File 'lib/ruby_paypal_nvp/configuration.rb', line 24

def password
  raise ConfigNotSet, 'password' unless @password
  @password
end

#signatureObject

Raises:



29
30
31
32
# File 'lib/ruby_paypal_nvp/configuration.rb', line 29

def signature
  raise ConfigNotSet, 'signature' unless @signature
  @signature
end

#subjectObject

Raises:



34
35
36
37
# File 'lib/ruby_paypal_nvp/configuration.rb', line 34

def subject
  raise ConfigNotSet, 'subject' unless @subject
  @subject
end

#userObject

Raises:



19
20
21
22
# File 'lib/ruby_paypal_nvp/configuration.rb', line 19

def user
  raise ConfigNotSet, 'user' unless @user
  @user
end

#versionObject



14
15
16
17
# File 'lib/ruby_paypal_nvp/configuration.rb', line 14

def version
  return '204.0' unless @version
  @version
end