Class: Nova::API::Resource::DirectPayable

Inherits:
DirectBill show all
Defined in:
lib/nova/api/resource/direct_payable.rb

Constant Summary

Constants inherited from DirectBill

Nova::API::Resource::DirectBill::ALLOWED_ATTRIBUTES

Constants inherited from Base

Base::PRODUCTION_HOST, Base::SCHEME, Base::STAGING_HOST

Constants inherited from Utils::BaseStruct

Utils::BaseStruct::DATE_REGEX

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

base_url, #endpoint

Methods inherited from Utils::BaseStruct

#allowed_attributes

Class Method Details

.create(parameters) ⇒ Object



9
10
11
12
13
# File 'lib/nova/api/resource/direct_payable.rb', line 9

def self.create(parameters)
  model = new parameters

  model.create
end

.endpointObject



5
6
7
# File 'lib/nova/api/resource/direct_payable.rb', line 5

def self.endpoint
  '/api/payables/save_direct'
end

Instance Method Details

#createObject



15
16
17
# File 'lib/nova/api/resource/direct_payable.rb', line 15

def create
  do_post(self.class.endpoint, allowed_attributes)
end