app/models/perfect_money_merchant/account.rb
def sync_with_pm_server
			response = Api.new.balance(AccountID: login, PassPhrase: password)
			response.each_pair do |code_number, balance|
				units.each do |unit|
					unit.update!(balance: balance) if unit.code_number == code_number
				end
			end
			self
		end
# Synchronize account unit balances with Perfect Money server via PerfectMoneyMerchant::Api
# @see PerfectMoneyMerchant::Api PerfectMoneyMerchant Api
# @return [PerfectMoneyMerchant::Account] itself
Synchronize account unit balances with Perfect Money server via PerfectMoneyMerchant::Api
Synchronize account unit balances with Perfect Money server via PerfectMoneyMerchant :: Api
def sync_with_pm_server
			response = Api.new.balance(AccountID: login, PassPhrase: password)
			response.each_pair do |code_number, balance|
				units.each do |unit|
					unit.update!(balance: balance) if unit.code_number == code_number
				end
			end
			self
		end
def sync_with_pm_server response = Api . new . balance ( AccountID : login , PassPhrase : password ) response . each_pair do | code_number , balance | units . each do | unit | unit . update! ( balance : balance ) if unit . code_number == code_number end end self end
Synchronize account unit balances with Perfect Money server via PerfectMoneyMerchant::Api
Synchronize account unit balances with Perfect Money server via PerfectMoneyMerchant :: Api
None
PerfectMoneyMerchant::Account
see
:Api PerfectMoneyMerchant Api
: Api PerfectMoneyMerchant Api