Class: Mumukit::Auth::AllGrant

Inherits:
Grant
  • Object
show all
Defined in:
lib/mumukit/auth/grant.rb

Instance Method Summary collapse

Methods inherited from Grant

#==, #as_json, #hash, #inspect, parse, #to_mumukit_grant

Instance Method Details

#allows?(_resource_slug) ⇒ Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/mumukit/auth/grant.rb', line 49

def allows?(_resource_slug)
  true
end

#to_mumukit_slugObject



57
58
59
# File 'lib/mumukit/auth/grant.rb', line 57

def to_mumukit_slug
  Mumukit::Auth::Slug.new '*', '*'
end

#to_sObject



53
54
55
# File 'lib/mumukit/auth/grant.rb', line 53

def to_s
  '*'
end