class Troo::Remote::Card
Public Class Methods
by_board_id()
click to toggle source
@return [Hash]
# File lib/troo/remote/card.rb, line 36 def by_board_id { endpoint: :cards_by_board_id, query: { filter: :open } } end
by_card_id()
click to toggle source
@return [Hash]
# File lib/troo/remote/card.rb, line 52 def by_card_id { endpoint: :card_by_id, query: { actions: :commentCard } } end
by_list_id()
click to toggle source
@return [Hash]
# File lib/troo/remote/card.rb, line 44 def by_list_id { endpoint: :cards_by_list_id, query: { filter: :open } } end
remote_options()
click to toggle source
@return [Hash]
# File lib/troo/remote/card.rb, line 31 def remote_options { mode: :card } end
Public Instance Methods
adapted()
click to toggle source
@return [Hash]
# File lib/troo/remote/card.rb, line 71 def adapted { short_id: idShort, name: name, desc: desc, url: url, position: pos, last_activity_date: dateLastActivity, closed: closed, external_board_id: idBoard, external_list_id: idList, external_id: id, external_member_ids: idMembers } end
associations()
click to toggle source
@return [Array]
# File lib/troo/remote/card.rb, line 61 def associations [:actions] end
local_model()
click to toggle source
@return [Class]
# File lib/troo/remote/card.rb, line 66 def local_model Troo::Card end