Skip to content

Instantly share code, notes, and snippets.

@inf0rmer
Created December 30, 2014 17:12
Show Gist options
  • Save inf0rmer/7bfbdb91a5f01e8b56c4 to your computer and use it in GitHub Desktop.
Save inf0rmer/7bfbdb91a5f01e8b56c4 to your computer and use it in GitHub Desktop.
Documenting dynamically created REST actions in Blanket
# @macro [attach] REST action
# @method $1()
# Performs a $1 request on the wrapped URL
# @param [String, Symbol, Numeric] id The resource identifier to attach to the last part of the request
# @param [Hash] options An options hash with values for :headers, :extension and :params
# @return [Blanket::Response, Array] A wrapped Blanket::Response or an Array
def add_action(action)
#...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment