class Rack::OAuth2::Server::Resource::Forbidden
Attributes
scope[RW]
Public Class Methods
new(error = :forbidden, description = nil, options = {})
click to toggle source
Calls superclass method
Rack::OAuth2::Server::Abstract::Forbidden.new
# File lib/rack/oauth2/server/resource/error.rb, line 29 def initialize(error = :forbidden, description = nil, options = {}) super @scope = options[:scope] end
Public Instance Methods
protocol_params()
click to toggle source
Calls superclass method
Rack::OAuth2::Server::Abstract::Error#protocol_params
# File lib/rack/oauth2/server/resource/error.rb, line 34 def protocol_params super.merge(scope: Array(scope).join(' ')) end