class VtApi::ApiV2::Comments::Comment

Representation of a comment

Attributes

date[R]
date_token[R]
text[R]

Public Class Methods

new(date_token, text) click to toggle source

Creates new Comment object from API data. It is not recommended to use this directly. Refer to API methods instead.

@see Comments.get @see Comments.put

@param [String] date_token Date token as present in API (can be used in Comments.get). @param [String] text Comment text

# File lib/vt_api/api/v2/comments.rb, line 23
def initialize(date_token, text)
        @date_token = date_token
        @date       = DateTime.parse date_token
        @text       = text
end