Class: Billplz::Collection
Instance Attribute Summary
Attributes inherited from Model
#endpoint, #payload, #response
Instance Method Summary collapse
Methods inherited from Model
#api_url, #initialize, #parsed_json, #request, #success?
Constructor Details
This class inherits a constructor from Billplz::Model
Instance Method Details
#create ⇒ Object
5 6 7 8 |
# File 'lib/billplz/collection.rb', line 5 def create requires!(@payload, :title) request(:post, @payload) end |