Class: YouTrack::Client::GetProjectCustomFields

Inherits:
Request
  • Object
show all
Defined in:
lib/you_track/client/requests/get_project_custom_fields.rb

Instance Method Summary collapse

Methods inherited from Request

#find, #require_parameters

Instance Method Details

#mock(id) ⇒ Object



9
10
11
# File 'lib/you_track/client/requests/get_project_custom_fields.rb', line 9

def mock(id)
  service.response(body: find(:custom_fields, id))
end

#real(id) ⇒ Object



2
3
4
5
6
7
# File 'lib/you_track/client/requests/get_project_custom_fields.rb', line 2

def real(id)
  service.request(
    :path   => "/admin/project/#{id}/customfield",
    :parser => YouTrack::Parser::ProjectCustomFieldsParser,
  )
end