Module: Glassfrog::REST::Post

Defined in:
lib/glassfrog/rest/post.rb

Overview

Encapsulates all POST requests.

Class Method Summary collapse

Class Method Details

.post(client, path, options) ⇒ Array<Hash>

Sends a POST request.

Parameters:

  • client (Glassfrog::Client)

    Client that will send the request.

  • path (String)

    Path to send request to.

  • options (Hash)

    Options being sent in the request.

Returns:

  • (Array<Hash>)

    Array containing a Hash for the object created.



16
17
18
# File 'lib/glassfrog/rest/post.rb', line 16

def self.post(client, path, options)
  Glassfrog::REST::Request.new(client, :post, path, options).perform
end