Class: XingApi::News::Article
- Inherits:
-
Base
- Object
- Base
- XingApi::News::Article
show all
- Defined in:
- lib/xing_api/news/article.rb,
lib/xing_api/news/article/like.rb
Defined Under Namespace
Classes: Like
Class Method Summary
collapse
Methods inherited from Base
request, request_with_body
Class Method Details
.delete(article_id, version, options = {}) ⇒ Object
12
13
14
|
# File 'lib/xing_api/news/article.rb', line 12
def self.delete(article_id, version, options = {})
request(:delete, "/v1/news/articles/#{article_id}", { version: version }.merge(options))
end
|
.find(article_id, options = {}) ⇒ Object
4
5
6
|
# File 'lib/xing_api/news/article.rb', line 4
def self.find(article_id, options = {})
request(:get, "/v1/news/articles/#{article_id}", options)
end
|
.update(article_id, version, options = {}) ⇒ Object
8
9
10
|
# File 'lib/xing_api/news/article.rb', line 8
def self.update(article_id, version, options = {})
request(:put, "/v1/news/articles/#{article_id}", { version: version }.merge(options))
end
|