Class: SendGrid::Scope
- Inherits:
-
Object
- Object
- SendGrid::Scope
- Defined in:
- lib/sendgrid/helpers/permissions/scope.rb
Constant Summary collapse
- SCOPES =
YAML.load_file("#{File.dirname(__FILE__)}/scopes.yml").freeze
Class Method Summary collapse
Class Method Details
.admin_permissions ⇒ Object
9 10 11 |
# File 'lib/sendgrid/helpers/permissions/scope.rb', line 9 def SCOPES.values.map(&:values).flatten end |
.read_only_permissions ⇒ Object
13 14 15 |
# File 'lib/sendgrid/helpers/permissions/scope.rb', line 13 def SCOPES.map { |_, v| v[:read] }.flatten end |