class Patron::Request

def action=(new_action)

def action=(new_action)
  if !VALID_ACTIONS.include?(new_action)
    raise ArgumentError, "Action must be one of #{VALID_ACTIONS.join(', ')}"
  end
  @action = new_action
end