Class: Apia::DSLs::ScopeDescriptions

Inherits:
Object
  • Object
show all
Defined in:
lib/apia/dsls/scope_descriptions.rb

Instance Method Summary collapse

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