Class: HipTail::AuthorityProvider Abstract

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

Overview

This class is abstract.

Instance Method Summary collapse

Instance Method Details

#[](oauth_id) ⇒ HipTail::Authority

Parameters:

  • oauth_id (String)

Returns:



6
7
8
# File 'lib/hiptail/authority/provider.rb', line 6

def [](oauth_id)
  get(oauth_id)
end

#[]=(oauth_id, authority) ⇒ HipTail::Authority

Parameters:

Returns:



13
14
15
# File 'lib/hiptail/authority/provider.rb', line 13

def []=(oauth_id, authority)
  register(oauth_id, authority)
end

#get(oauth_id) ⇒ HipTail::Authority

This method is abstract.

Parameters:

  • oauth_id (String)

Returns:



20
21
22
# File 'lib/hiptail/authority/provider.rb', line 20

def get(oauth_id)
  raise
end

#register(oauth_id, authority) ⇒ HipTail::Authority

This method is abstract.

Parameters:

Returns:



28
29
30
# File 'lib/hiptail/authority/provider.rb', line 28

def register(oauth_id, authority)
  raise
end

#unregister(oauth_id) ⇒ void

This method is abstract.

This method returns an undefined value.

Parameters:

  • oauth_id (String)


35
36
37
# File 'lib/hiptail/authority/provider.rb', line 35

def unregister(oauth_id)
  raise
end