Module: Reapal
- Defined in:
- lib/reapal.rb,
lib/reapal/utils.rb,
lib/reapal/client.rb,
lib/reapal/railtie.rb,
lib/reapal/version.rb,
lib/reapal/sign/md5.rb,
lib/reapal/encrypt/aes.rb,
lib/reapal/encrypt/rsa.rb,
lib/reapal/http/decode.rb,
lib/reapal/http/response.rb,
lib/reapal/api/api_helper.rb,
lib/reapal/form/form_helper.rb,
lib/reapal/http/communicate.rb,
lib/reapal/http/error_code/user.rb,
lib/reapal/api/money/sub_account.rb,
lib/reapal/api/user/mobile_query.rb,
lib/reapal/http/error_code/money.rb,
lib/reapal/http/error_code/order.rb,
lib/reapal/api/user/balance_query.rb,
lib/reapal/form/com_contract_form.rb,
lib/reapal/http/error_code/common.rb,
lib/reapal/http/error_code/tender.rb,
lib/reapal/api/money/deposit_query.rb,
lib/reapal/api/tender/tender_apply.rb,
lib/reapal/api/tender/tender_close.rb,
lib/reapal/api/user/contract_query.rb,
lib/reapal/form/business_auth_form.rb,
lib/reapal/form/close_account_form.rb,
lib/reapal/form/deposit_apply_form.rb,
lib/reapal/form/mobile_modify_form.rb,
lib/reapal/form/tender_invest_form.rb,
lib/reapal/form/tender_refund_form.rb,
lib/reapal/form/user_contract_form.rb,
lib/reapal/api/money/withdraw_query.rb,
lib/reapal/api/tender/tender_finish.rb,
lib/reapal/api/user/bind_card_query.rb,
lib/reapal/form/bind_bank_card_form.rb,
lib/reapal/form/member_payment_form.rb,
lib/reapal/form/withdraw_apply_form.rb,
lib/reapal/form/com_update_info_form.rb,
lib/reapal/api/order/query_by_flow_id.rb,
lib/reapal/api/money/sub_account_query.rb,
lib/reapal/api/tender/tender_all_cancel.rb,
lib/reapal/api/tender/tender_auth_query.rb,
lib/reapal/api/user/undo_bind_bank_card.rb,
lib/reapal/form/com_uploading_info_form.rb,
lib/reapal/api/tender/tender_auth_cancel.rb,
lib/reapal/form/find_trade_password_form.rb,
lib/reapal/api/money/member_payment_query.rb,
lib/reapal/api/tender/tender_apply_modify.rb,
lib/reapal/api/user/modify_bind_bank_card.rb,
lib/reapal/api/user/onekey_batch_contract.rb,
lib/reapal/api/user/set_history_user_type.rb,
lib/reapal/form/reset_trade_password_form.rb,
lib/reapal/form/tender_apply_confirm_form.rb,
lib/reapal/api/tender/tender_history_apply.rb,
lib/reapal/api/tender/tender_onekey_invest.rb,
lib/reapal/api/tender/tender_onekey_refund.rb,
lib/reapal/api/order/tender_serial_no_query.rb,
lib/reapal/form/refund_guarant_payment_form.rb,
lib/reapal/form/signle_tender_transfer_form.rb,
lib/reapal/api/order/query_by_single_flow_id.rb,
lib/reapal/api/user/com_onekey_batch_contract.rb,
lib/reapal/api/tender/tender_repayment_project.rb,
lib/reapal/api/tender/tender_repayment_complete.rb,
lib/reapal/api/tender/history_tender_info_modify.rb,
lib/reapal/api/tender/refund_guarant_payment_query.rb,
lib/reapal/api/tender/tender_onekey_invest_history.rb
Overview
Defined Under Namespace
Modules: Api, Encrypt, Form, Http, Sign, Utils
Classes: Client, Railtie
Constant Summary
collapse
- VERSION =
"0.18.0"
Class Method Summary
collapse
Class Method Details
.default_logger ⇒ Object
44
45
46
47
48
|
# File 'lib/reapal.rb', line 44
def default_logger
_logger = Logger.new(STDOUT)
_logger.level = Logger::INFO
_logger
end
|
.logger ⇒ Object
40
41
42
|
# File 'lib/reapal.rb', line 40
def logger
@logger ||= default_logger
end
|
.logger=(log) ⇒ Object
50
51
52
|
# File 'lib/reapal.rb', line 50
def logger=(log)
@logger = (log ? log : Logger.new('/dev/null'))
end
|