Class: Apia::DSLs::ScopeDescriptions
- Inherits:
-
Object
- Object
- Apia::DSLs::ScopeDescriptions
- Defined in:
- lib/apia/dsls/scope_descriptions.rb
Instance Method Summary collapse
- #add(name, description) ⇒ Object
-
#initialize(api) ⇒ ScopeDescriptions
constructor
A new instance of ScopeDescriptions.
Constructor Details
#initialize(api) ⇒ ScopeDescriptions
Returns a new instance of ScopeDescriptions.
7 8 9 |
# File 'lib/apia/dsls/scope_descriptions.rb', line 7 def initialize(api) @api = api end |
Instance Method Details
#add(name, description) ⇒ Object
11 12 13 |
# File 'lib/apia/dsls/scope_descriptions.rb', line 11 def add(name, description) @api.scopes[name.to_s] = { description: description } end |