Class: Besepa::Remittance
- Includes:
- ApiCalls::List
- Defined in:
- lib/besepa/remittance.rb
Constant Summary collapse
- FIELDS =
[:id, :collect_at, :send_at, :sent_at, :status, :scheme, :created_at, :debits_count, :debits_amount]
Constants inherited from Resource
Besepa::Resource::ALLOWED_NILS
Constants included from Utils::Request
Utils::Request::END_POINT_URL_PREFIX
Instance Attribute Summary collapse
-
#bank_account ⇒ Object
Returns the value of attribute bank_account.
Attributes inherited from Resource
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ApiCalls::List
Methods inherited from Resource
#allowed_nils, #as_json, handle_errors, #initialize, klass_name, #klass_name, query_params, #serializable_hash, #to_hash
Methods included from Utils::Request
Methods included from Utils::Connection
Constructor Details
This class inherits a constructor from Besepa::Resource
Instance Attribute Details
#bank_account ⇒ Object
Returns the value of attribute bank_account.
9 10 11 |
# File 'lib/besepa/remittance.rb', line 9 def bank_account @bank_account end |
Class Method Details
.api_path(filters = {}) ⇒ Object
15 16 17 |
# File 'lib/besepa/remittance.rb', line 15 def self.api_path(filters={}) "/remittances" end |
Instance Method Details
#api_path(filters = {}) ⇒ Object
19 20 21 |
# File 'lib/besepa/remittance.rb', line 19 def api_path(filters={}) "#{self.class.api_path(filters)}/#{CGI.escape(id)}" end |
#stats ⇒ Object
23 24 25 26 |
# File 'lib/besepa/remittance.rb', line 23 def stats response = get "#{api_path}/stats" response['response'] end |