Class: XingApi::Group::Forum::Post
- Inherits:
-
Base
- Object
- Base
- XingApi::Group::Forum::Post
show all
- Defined in:
- lib/xing_api/group/forum/post.rb
Class Method Summary
collapse
Methods inherited from Base
request, request_with_body
Class Method Details
.create(forum_id, title, content, options = {}) ⇒ Object
9
10
11
|
# File 'lib/xing_api/group/forum/post.rb', line 9
def self.create(forum_id, title, content, options = {})
request(:post, "/v1/groups/forums/#{forum_id}/posts", { title: title, content: content }.merge(options))
end
|
.list(forum_id, options = {}) ⇒ Object
5
6
7
|
# File 'lib/xing_api/group/forum/post.rb', line 5
def self.list(forum_id, options = {})
request(:get, "/v1/groups/forums/#{forum_id}/posts", options)
end
|