Class: Zendesk2::GetTopicComment

Inherits:
Object
  • Object
show all
Includes:
Request
Defined in:
lib/zendesk2/get_topic_comment.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



16
17
18
# File 'lib/zendesk2/get_topic_comment.rb', line 16

def mock
  mock_response('topic_comment' => find!(:topic_comments, topic_comment_id))
end

#topic_comment_idObject



12
13
14
# File 'lib/zendesk2/get_topic_comment.rb', line 12

def topic_comment_id
  params.fetch('topic_comment').fetch('id')
end

#topic_idObject



8
9
10
# File 'lib/zendesk2/get_topic_comment.rb', line 8

def topic_id
  params.fetch('topic_comment').fetch('topic_id')
end