Class: Lionel::TrelloAuthentication
- Inherits:
-
Object
- Object
- Lionel::TrelloAuthentication
show all
- Includes:
- Configurable
- Defined in:
- lib/lionel/trello_authentication.rb
Instance Method Summary
collapse
#configuration, #configured?, included, #save_configuration
Instance Method Details
#app_name ⇒ Object
29
30
31
|
# File 'lib/lionel/trello_authentication.rb', line 29
def app_name
"LionelRichie"
end
|
14
15
16
17
18
19
|
# File 'lib/lionel/trello_authentication.rb', line 14
def configure
Trello.configure do |c|
c.developer_public_key = trello_key
c.member_token = trello_token
end
end
|
#data ⇒ Object
7
8
9
10
11
12
|
# File 'lib/lionel/trello_authentication.rb', line 7
def data
{
trello_key: trello_key,
trello_token: trello_token
}
end
|
#trello_key_url ⇒ Object
21
22
23
|
# File 'lib/lionel/trello_authentication.rb', line 21
def trello_key_url
"https://trello.com/1/appKey/generate"
end
|
#trello_token_url(key = trello_key) ⇒ Object
25
26
27
|
# File 'lib/lionel/trello_authentication.rb', line 25
def trello_token_url(key = trello_key)
"https://trello.com/1/authorize?key=#{key}&name=#{app_name}&response_type=token&scope=read,write,account&expiration=never"
end
|