Class: CentrumFaktur::API::Comment

Inherits:
Base
  • Object
show all
Defined in:
lib/centrum_faktur/api/comment.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CentrumFaktur::API::Base

Instance Method Details

#create(comment_uri, params) ⇒ Object



10
11
12
13
# File 'lib/centrum_faktur/api/comment.rb', line 10

def create(comment_uri, params)
  request = connection.post(comment_uri, params)
  request.handle_response
end

#list(comment_uri = "/api/1.0/comments/", options = {}) ⇒ Object



5
6
7
8
# File 'lib/centrum_faktur/api/comment.rb', line 5

def list(comment_uri = "/api/1.0/comments/", options = {})
  request = connection.get(comment_uri, options)
  request.handle_response
end