Class: Nova::API::Resource::DirectPayable
- Inherits:
-
DirectBill
- Object
- Dry::Struct
- Utils::BaseStruct
- Base
- DirectBill
- Nova::API::Resource::DirectPayable
- 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
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
authorization_header, base_url, configuration, do_get, do_get_search, #endpoint, perform_get
Methods inherited from Utils::BaseStruct
#allowed_attributes, generate_valid_value_for, initialize_empty_model_with_id, value_for_field
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 |