Tusker/Pachyderm/Model/Scope.swift

22 lines
366 B
Swift
Raw Normal View History

2018-09-11 14:52:21 +00:00
//
// Scope.swift
// Pachyderm
//
// Created by Shadowfacts on 9/9/18.
// Copyright © 2018 Shadowfacts. All rights reserved.
//
import Foundation
public enum Scope: String {
case read
case write
case follow
}
extension Array where Element == Scope {
var scopeString: String {
return map { $0.rawValue }.joined(separator: " ")
}
}