Class: Rubykassa::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
9
10
11
12
13
# File 'lib/rubykassa/configuration.rb', line 6

def initialize
  self. = "your_login"
  self.first_password = "first_password"
  self.second_password = "second_password"
  self.mode = :test
  self.http_method = :get
  self.xml_http_method = :get      
end

Instance Attribute Details

#first_passwordObject

Returns the value of attribute first_password.



4
5
6
# File 'lib/rubykassa/configuration.rb', line 4

def first_password
  @first_password
end

#http_methodObject

Returns the value of attribute http_method.



4
5
6
# File 'lib/rubykassa/configuration.rb', line 4

def http_method
  @http_method
end

#loginObject

Returns the value of attribute login.



4
5
6
# File 'lib/rubykassa/configuration.rb', line 4

def 
  @login
end

#modeObject

Returns the value of attribute mode.



4
5
6
# File 'lib/rubykassa/configuration.rb', line 4

def mode
  @mode
end

#second_passwordObject

Returns the value of attribute second_password.



4
5
6
# File 'lib/rubykassa/configuration.rb', line 4

def second_password
  @second_password
end

#xml_http_methodObject

Returns the value of attribute xml_http_method.



4
5
6
# File 'lib/rubykassa/configuration.rb', line 4

def xml_http_method
  @xml_http_method
end