Module: NeonApi

Defined in:
lib/neon_api.rb,
lib/neon_api/client.rb,
lib/neon_api/version.rb,
lib/neon_api/configuration.rb,
lib/neon_api/methods/balance.rb,
lib/neon_api/methods/get_banks.rb,
lib/neon_api/methods/get_payers.rb,
lib/neon_api/methods/get_payment.rb,
lib/neon_api/methods/create_payer.rb,
lib/neon_api/methods/get_accounts.rb,
lib/neon_api/methods/get_finality.rb,
lib/neon_api/methods/send_payment.rb,
lib/neon_api/methods/get_statement.rb,
lib/neon_api/methods/send_transfer.rb,
lib/neon_api/methods/cancel_payment.rb,
lib/neon_api/methods/confirm_payment.rb,
lib/neon_api/methods/confirm_transfer.rb,
lib/neon_api/methods/get_account_types.rb,
lib/neon_api/methods/create_sub_account.rb,
lib/neon_api/methods/get_payment_slip_by_payer.rb,
lib/neon_api/methods/generate_payment_slip_to_payer.rb,
lib/neon_api/methods/get_payment_slip_by_sub_account.rb

Defined Under Namespace

Modules: Balance, CancelPayment, ConfirmPayment, ConfirmTransfer, CreatePayer, CreateSubAccount, GeneratePaymentSlipToPayer, GetAccountTypes, GetAccounts, GetBanks, GetFinality, GetPayers, GetPayment, GetPaymentSlipByPayer, GetPaymentSlipBySubAccount, GetStatement, SendPayment, SendTransfer Classes: Client, Configuration

Constant Summary collapse

VERSION =
"0.1.10"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



3
4
5
# File 'lib/neon_api/configuration.rb', line 3

def configuration
  @configuration
end

Class Method Details

.clientObject



12
13
14
# File 'lib/neon_api/configuration.rb', line 12

def self.client
  self.configuration.client
end

.configure {|configuration| ... } ⇒ Object

Yields:



6
7
8
9
10
# File 'lib/neon_api/configuration.rb', line 6

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
  self.configuration.client_setup
end