Class: HipTail::Manager::AuthorityManager

Inherits:
Object
  • Object
show all
Defined in:
lib/hiptail/manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authority_provider) ⇒ HipTail::Manager::AuthorityManager

Parameters:



237
238
239
# File 'lib/hiptail/manager.rb', line 237

def initialize(authority_provider)
  @authority_provider = authority_provider
end

Instance Attribute Details

#authority_providerHipTail::AuthorityProvider



233
234
235
# File 'lib/hiptail/manager.rb', line 233

def authority_provider
  @authority_provider
end

Instance Method Details

#[](oauth_id) ⇒ HipTail::Authority

Parameters:

  • oauth_id (String)

Returns:



243
244
245
# File 'lib/hiptail/manager.rb', line 243

def [](oauth_id)
  @authority_provider.get(oauth_id)
end