Class: Doorkeeper::DoorkeeperForBuilder
- Inherits:
-
Object
- Object
- Doorkeeper::DoorkeeperForBuilder
- Defined in:
- lib/doorkeeper/doorkeeper_for.rb
Class Method Summary collapse
Class Method Details
.create_doorkeeper_for(*args) ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/doorkeeper/doorkeeper_for.rb', line 65 def self.create_doorkeeper_for(*args) case args.first when :all AllDoorkeeperFor.new(args[1] || {}) when Hash, nil raise InvalidSyntax else SelectedDoorkeeperFor.new(*args) end end |