Sha256: 8b42d8859c7dd670b89b89a86786cb5e69df69bab9cfde9c772d35a4be816a27
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
module Sendle module Api module Actions module Create def create(params = {}) check_for_missing_credentials validate_create_request!(params) request_params = rest_client_params request_params[:method] = :post request_params[:url] = url request_params[:payload] = params process_create_response(request(request_params)) end def self.included(base) base.extend(Sendle::Api::Sugars::Create) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sendle-api-0.0.13 | lib/sendle/api/actions/create.rb |
sendle-api-0.0.12 | lib/sendle/api/actions/create.rb |