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