Class: Nova::API::Resource::DirectPayable
Constant Summary
Constants inherited
from DirectBill
Nova::API::Resource::DirectBill::ALLOWED_ATTRIBUTES
Constants inherited
from Base
Base::PRODUCTION_HOST, Base::SCHEME, Base::STAGING_HOST
Utils::BaseStruct::DATE_REGEX
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
base_url, #endpoint
#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
|
.endpoint ⇒ Object
5
6
7
|
# File 'lib/nova/api/resource/direct_payable.rb', line 5
def self.endpoint
'/api/payables/save_direct'
end
|
Instance Method Details
#create ⇒ Object
15
16
17
|
# File 'lib/nova/api/resource/direct_payable.rb', line 15
def create
do_post(self.class.endpoint, allowed_attributes)
end
|