Ruby Trello Lite

This is a learning project using this gem: ruby-trello.

The idea behind this project is to replicate some features using the examples in the gem's documentation.

Other ways to enhance this project

How to use this project

  1. Get your Trello API keys: trello.com/api-key

  2. Clone the project to your local repository

  3. In your repository, add require './lib/trello' in your “play” script. run.rb is provided as an example.

  4. Run your script

Features implemented so far:

  1. Configuration

Trello.configure do |config|
  config.consumer_key = TRELLO_CONSUMER_KEY
  config.oauth_token = TRELLO_OAUTH_TOKEN
end
  1. Member information

bob = Trello::Member.find("bobtester")

# Print out his name
puts bob.full_name # "Bob Tester"

# Print his bio
puts bob.bio # A wonderfully delightful test user
  1. List member boards (returns an array instead of ActiveModel:Associations)

# Print boards

puts bob.boards

# Optional: limit the number of boards to view

puts bob.boards(10)
  1. Find board (Custom to this gem)

okrs_board = bob.find_board("okrs")

puts okrs_board
  1. Get all the lists of that board and their names

puts okrs_board.lists

# print all the list names of that board
okrs_board.lists.each do |list|
  puts list.name
end
  1. Get all the cards of a list and get all their names

okrs_board.lists.first.cards.each do |card|
  puts card.name  
end

TODO:

Things I've Learned:

New techniques used:

“`