Created
December 30, 2014 17:12
-
-
Save inf0rmer/7bfbdb91a5f01e8b56c4 to your computer and use it in GitHub Desktop.
Documenting dynamically created REST actions in Blanket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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