class Trello::Client::Board
Trello::Client::Board
object
Public Class Methods
new(board) { |self| ... }
click to toggle source
Initialize Trello::Client::Board
Params:
board
-
Hash'ified JSON board or JSON string
# File lib/trello-client/board.rb, line 19 def initialize(board) @board = board.kind_of?(Hash) ? board : MultiJson.decode(board) yield self if block_given? self end
Public Instance Methods
[](key)
click to toggle source
Get Trello::Client::Board
property
# File lib/trello-client/board.rb, line 28 def[](key) @board[key] end
lists()
click to toggle source
Get Array
of Trello::Client::List
objects
# File lib/trello-client/board.rb, line 35 def lists unless @lists @lists = ( @board['lists'] || [] ).collect { |l| Trello::Client::List.new(l) } end @lists end
to_s()
click to toggle source
String representation.
# File lib/trello-client/board.rb, line 45 def to_s @board.to_s end