class Patron::Request
def action=(action)
-
action
(String
) -- the name of the HTTP verb
def action=(action) if !VALID_ACTIONS.include?(action.to_s.upcase) raise ArgumentError, "Action must be one of #{VALID_ACTIONS.join(', ')}" end @action = action.downcase.to_sym end