class TrelloDXY::Requests::BoardForUrl

Public Class Methods

new() click to toggle source
# File lib/trello_dxy/requests/board_for_url.rb, line 6
def initialize
  connect_to_trello
end

Public Instance Methods

board(url) click to toggle source
# File lib/trello_dxy/requests/board_for_url.rb, line 10
def board(url)
  board = Trello::Board.all.find { |board| board.url == url }
  if board.nil?
    puts 'The given board URL was not found'
    exit 1
  end
  board
end