# Encapsulate a scope used for authorization, such as `api`, or `read_user`moduleAPIclassScopeattr_reader:name,:ifdefinitialize(name,options={})@name=name.to_sym@if=options[:if]end# Are the `scopes` passed in sufficient to adequately authorize the passed# request for the scope represented by the current instance of this class?defsufficient?(scopes,request)