Class: Doorkeeper::DoorkeeperFor
- Inherits:
-
Object
- Object
- Doorkeeper::DoorkeeperFor
- Defined in:
- lib/doorkeeper/doorkeeper_for.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
- #filter_options ⇒ Object
-
#initialize(options) ⇒ DoorkeeperFor
constructor
A new instance of DoorkeeperFor.
Constructor Details
#initialize(options) ⇒ DoorkeeperFor
Returns a new instance of DoorkeeperFor.
6 7 8 9 10 11 12 13 14 |
# File 'lib/doorkeeper/doorkeeper_for.rb', line 6 def initialize() ||= {} fail InvalidSyntax unless .is_a? Hash @filter_options = {} .each do |k, v| send("#{k}=", v) end end |
Instance Attribute Details
#scopes ⇒ Object
Returns the value of attribute scopes.
4 5 6 |
# File 'lib/doorkeeper/doorkeeper_for.rb', line 4 def scopes @scopes end |
Instance Method Details
#filter_options ⇒ Object
16 17 18 |
# File 'lib/doorkeeper/doorkeeper_for.rb', line 16 def @filter_options end |