Class: Clubhouse::Storycomment

Inherits:
ClubhouseResource show all
Defined in:
lib/clubhouse2/story_comment.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ClubhouseResource

#delete!, #flush, inherited, #initialize, property_filter_create, property_filter_update, #resolve_to_ids, #set_properties, subclass, #to_h, #update, validate, #value_format

Constructor Details

This class inherits a constructor from Clubhouse::ClubhouseResource

Class Method Details

.api_urlObject



7
8
9
# File 'lib/clubhouse2/story_comment.rb', line 7

def self.api_url
	'comments'
end

.propertiesObject



3
4
5
# File 'lib/clubhouse2/story_comment.rb', line 3

def self.properties
	[ :author_id, :comments, :created_at, :entity_type, :external_id, :id, :mention_ids, :position, :story_id, :text, :updated_at ]
end

Instance Method Details

#api_urlObject



11
12
13
# File 'lib/clubhouse2/story_comment.rb', line 11

def api_url
	"#{self.api_url}/#{@story_id}/#{id}"
end