Class: Zendesk2::GetHelpCenterPosts

Inherits:
Object
  • Object
show all
Includes:
Request
Defined in:
lib/zendesk2/help_center/get_help_center_posts.rb

Instance Attribute Summary

Attributes included from Request

#params

Instance Method Summary collapse

Methods included from Request

#call, cistern_included, #data, #delete!, #error!, #find!, #html_url_for, included, #mock_response, #page, #page_params!, #page_params?, #pluralize, #real, #real_request, #request_body, #request_params, #request_path, #resources, #response, #timestamp, #url_for

Instance Method Details

#mockObject



25
26
27
# File 'lib/zendesk2/help_center/get_help_center_posts.rb', line 25

def mock
  page(:help_center_posts, root: 'posts')
end

#topic_idObject



17
18
19
# File 'lib/zendesk2/help_center/get_help_center_posts.rb', line 17

def topic_id
  params['topic_id']
end

#user_idObject



21
22
23
# File 'lib/zendesk2/help_center/get_help_center_posts.rb', line 21

def user_id
  params['user_id']
end