Class: Trello::Client::Board
- Inherits:
-
Object
- Object
- Trello::Client::Board
- Defined in:
- lib/trello-client/board.rb
Overview
Trello::Client::Board object
Instance Method Summary collapse
-
#[](key) ⇒ Object
Get Trello::Client::Board property.
-
#initialize(board) {|_self| ... } ⇒ Board
constructor
Initialize Trello::Client::Board.
-
#lists ⇒ Object
Get
Array
of Trello::Client::List objects.
Constructor Details
#initialize(board) {|_self| ... } ⇒ Board
Initialize Trello::Client::Board
Params:
board
-
Hash’ified JSON board or JSON string
19 20 21 22 23 |
# 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 |
Instance Method Details
#[](key) ⇒ Object
Get Trello::Client::Board property
28 29 30 |
# File 'lib/trello-client/board.rb', line 28 def[](key) @board[key] end |