Class: Tracky::Comment

Inherits:
BaseAPI show all
Defined in:
lib/tracky/comment.rb

Constant Summary

Constants inherited from BaseAPI

BaseAPI::URI

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseAPI

get, url

Instance Attribute Details

#contentObject

Returns the value of attribute content.



3
4
5
# File 'lib/tracky/comment.rb', line 3

def content
  @content
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/tracky/comment.rb', line 3

def id
  @id
end

Instance Method Details

#saveObject

If there’s an ID, update comment by the ID else just create the new one



7
8
9
# File 'lib/tracky/comment.rb', line 7

def save
  #code
end