Class: Trello::Card

Inherits:
ApiObject show all
Defined in:
lib/trello/card.rb

Instance Method Summary collapse

Methods inherited from ApiObject

#initialize

Constructor Details

This class inherits a constructor from Trello::ApiObject

Instance Method Details

#add(list_id:, **args) ⇒ Object


12
13
14
# File 'lib/trello/card.rb', line 12

def add(list_id:, **args)
  @client.post("/1/cards", args.merge(idList: list_id))
end

#delete(id:) ⇒ Object


16
17
18
# File 'lib/trello/card.rb', line 16

def delete(id:)
  super
end

#fetch(id:) ⇒ Object


8
9
10
# File 'lib/trello/card.rb', line 8

def fetch(id:)
  super
end

#fetch_all(**args) ⇒ Object


3
4
5
6
# File 'lib/trello/card.rb', line 3

def fetch_all(**args)
  raise unless args[:list_id]
  super
end