Module: Cenit::API::HttpCreatable
Instance Method Summary
collapse
#do_data_request, #do_request
Methods included from HttpQuery
#method_missing, #query
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Cenit::API::HttpQuery
Instance Method Details
#create(data, options = {}, &block) ⇒ Object
11
12
13
|
# File 'lib/cenit/api/http_creatable.rb', line 11
def create(data, options = {}, &block)
post(data, options, &block)
end
|
#post(data, options = {}, &block) ⇒ Object
7
8
9
|
# File 'lib/cenit/api/http_creatable.rb', line 7
def post(data, options = {}, &block)
do_data_request(:post, data, options, &block)
end
|