Module: TrelloCli::Requests::Shared

Included in:
CreateCard, ListBoards, ListCards, ListLists, Members, MoveCard
Defined in:
lib/trello_cli/requests/shared.rb

Instance Method Summary collapse

Instance Method Details

#connect_to_trelloObject



5
6
7
8
9
10
# File 'lib/trello_cli/requests/shared.rb', line 5

def connect_to_trello
  Trello.configure do |config|
    config.developer_public_key = key
    config.member_token         = token
  end
end

#keyObject



12
13
14
# File 'lib/trello_cli/requests/shared.rb', line 12

def key
  ENV['TRELLO_DEVELOPER_PUBLIC_KEY']
end

#tokenObject



16
17
18
# File 'lib/trello_cli/requests/shared.rb', line 16

def token
  ENV['TRELLO_MEMBER_TOKEN']
end