class Lionel::TrelloAuthentication
Public Instance Methods
app_name()
click to toggle source
# File lib/lionel/trello_authentication.rb, line 29 def app_name "LionelRichie" end
configure()
click to toggle source
# 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()
click to toggle source
# File lib/lionel/trello_authentication.rb, line 7 def data { trello_key: trello_key, trello_token: trello_token } end
trello_key_url()
click to toggle source
# 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)
click to toggle source
# 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