class Patron::Request
def action=(new_action)
def action=(new_action) if ![:get, :put, :post, :delete, :head].include?(new_action) raise ArgumentError, "Action must be one of :get, :put, :post, :delete or :head" end @action = new_action end
def action=(new_action) if ![:get, :put, :post, :delete, :head].include?(new_action) raise ArgumentError, "Action must be one of :get, :put, :post, :delete or :head" end @action = new_action end