Class: StashAPI::Comment

Inherits:
Resource show all
Defined in:
lib/stash_api/comment.rb

Class Method Summary collapse

Methods inherited from Resource

add_resource_to_chain, create_resource, fetch, raise_resource_key_missing, reset_resource_chain, resource, resource_id, resource_path

Class Method Details

.create(text, options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/stash_api/comment.rb', line 5

def create(text, options = {})
  options[:text] = text

  create_resource options
end