Class: Moneta::Api::Service
- Inherits:
-
Object
- Object
- Moneta::Api::Service
- Includes:
- ServiceMethods
- Defined in:
- lib/moneta/api/service.rb
Constant Summary collapse
- DEMO =
'https://demo.moneta.ru/services.wsdl'- PRODUCTION =
'https://www.moneta.ru/services.wsdl'
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(username, password, params = {}) ⇒ Service
constructor
A new instance of Service.
Methods included from ServiceMethods
#authorise_transaction, #authorise_transaction_batch, #cancel_transaction, #cancel_transaction_batch, #confirm_transaction, #confirm_transaction_batch, #create_account, #create_bank_account, #create_profile, #edit_bank_account, #edit_profile, #find_account_by_alias, #find_account_by_id, #find_accounts_list, #find_bank_accounts, #find_last_operations_list, #find_operations_list, #forecast_transaction, #get_account_payment_password_challenge, #get_operation_details_by_id, #get_profile_info, #invoice, #invoice_batch, #payment, #refund, #transfer, #verify_payment, #verify_transaction, #verify_transfer
Constructor Details
#initialize(username, password, params = {}) ⇒ Service
Returns a new instance of Service.
10 11 12 |
# File 'lib/moneta/api/service.rb', line 10 def initialize(username, password, params = {}) @client = Savon.client(prepare_params(username, password, params)) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
8 9 10 |
# File 'lib/moneta/api/service.rb', line 8 def client @client end |