class Troo::Remote::Comment
Public Class Methods
by_board_id()
click to toggle source
@return [Hash]
# File lib/troo/remote/comment.rb, line 21 def by_board_id { endpoint: :comments_by_board_id, query: { filter: :commentCard } } end
by_card_id()
click to toggle source
@return [Hash]
# File lib/troo/remote/comment.rb, line 29 def by_card_id { endpoint: :comments_by_card_id, query: { filter: :commentCard } } end
remote_options()
click to toggle source
@return [Hash]
# File lib/troo/remote/comment.rb, line 16 def remote_options { mode: :card } end
Public Instance Methods
adapted()
click to toggle source
@return [Hash]
# File lib/troo/remote/comment.rb, line 68 def adapted { external_id: id, external_board_id: data.board.id, external_card_id: data.card.id, external_member_id: idMemberCreator, date: date, text: text } end
associations()
click to toggle source
@return [Array]
# File lib/troo/remote/comment.rb, line 58 def associations [:memberCreator] end
external_board_id()
click to toggle source
@return [String]
# File lib/troo/remote/comment.rb, line 38 def external_board_id data.board.id end
external_card_id()
click to toggle source
@return [String]
# File lib/troo/remote/comment.rb, line 43 def external_card_id data.card.id end
external_comment_id()
click to toggle source
@return [String]
# File lib/troo/remote/comment.rb, line 48 def external_comment_id id end
local_model()
click to toggle source
@return [Class]
# File lib/troo/remote/comment.rb, line 63 def local_model Troo::Comment end
text()
click to toggle source
@return [String]
# File lib/troo/remote/comment.rb, line 53 def text data.text end