Class: Billplz::Collection

Inherits:
Model
  • Object
show all
Defined in:
lib/billplz/collection.rb

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

#createObject



5
6
7
8
# File 'lib/billplz/collection.rb', line 5

def create
  requires!(@payload, :title)
  request(:post, @payload)
end