class Trello::Comment

A Comment is a string with a creation date; it resides inside a Card and belongs to a User.

@!attribute [r] id

@return [String]

@!attribute [w] text

@return [String]

@!attribute [r] date

@return [Datetime]

@!attribute [r] creator_id

@return [String]

@!attribute [r] data

@return [Hash]

@!attribute [r] type

@return [String]

@!attribute [r] limits

@return [Hash]

@!attribute [r] app_creator

@return [String]

@!attribute [r] display

@return [Hash]

Public Class Methods

find(action_id) click to toggle source
# File lib/trello/comment.rb, line 43
def find(action_id)
  client.find(:action, action_id)
end

Public Instance Methods

board() click to toggle source

Returns the board this comment is located

# File lib/trello/comment.rb, line 49
def board
  Board.from_response client.get("/actions/#{action_id}/board")
end
card() click to toggle source

Returns the card the comment is located

# File lib/trello/comment.rb, line 54
def card
  Card.from_response client.get("/actions/#{action_id}/card")
end
delete() click to toggle source

Deletes the comment from the card

# File lib/trello/comment.rb, line 64
def delete
  ruta = "/actions/#{action_id}"
  client.delete(ruta)
end
list() click to toggle source

Returns the list the comment is located

# File lib/trello/comment.rb, line 59
def list
  List.from_response client.get("/actions/#{action_id}/list")
end