Class: MPIClient::OptionTranslator
- Inherits:
-
Object
- Object
- MPIClient::OptionTranslator
- Defined in:
- lib/mpi_client/option_translator.rb
Constant Summary collapse
- OPTION_MAP =
{ :merchant_id => :Id, :site_name => :Name, :site_url => :URL, :certificate_subject => :IP, :acquirer_bin => :AcquirerBIN, :country_code => :CountryCode, :password => :Password, :certificate => :PublicCertificate, :private_key => :PrivateKey, :directory_server_url => :DirectoryServerURL, :country_code => :CountryCode, :brand => :CardType, :response_url => :ResponseURL, :client_url => :ClientURL, :term_url => :TermURL, :account_id => :AccountId, :error => :Error, :card_number => :CardNumber, :status => :status }
Class Method Summary collapse
Class Method Details
.to_client(option) ⇒ Object
25 26 27 |
# File 'lib/mpi_client/option_translator.rb', line 25 def self.to_client(option) OPTION_MAP.invert[option] end |
.to_server(option) ⇒ Object
29 30 31 |
# File 'lib/mpi_client/option_translator.rb', line 29 def self.to_server(option) OPTION_MAP[option] end |