@@ -24,7 +24,7 @@ class Jobs(object):
2424 and :attr:`scrapinghub.client.spiders.Spider.jobs` attributes.
2525
2626 :ivar project_id: a string project id.
27- :ivar spider: :class:`Spider` object if defined.
27+ :ivar spider: :class:`~scrapinghub.client.spiders. Spider` object if defined.
2828
2929 Usage::
3030
@@ -112,16 +112,16 @@ def iter(self, count=None, start=None, spider=None, state=None,
112112 >>> [job['key'] for job in jobs_summary]
113113 ['123/1/3', '123/1/2', '123/1/1']
114114
115- - job summary fieldset is less detailed than job.metadata but contains
116- few new fields as well. Additional fields can be requested using
117- ``meta`` parameter. If it's used, then it's up to the user to list
118- all the required fields, so only few default fields would be added
119- except requested ones::
115+ - job summary fieldset is less detailed than :class:`JobMeta` but
116+ contains a few new fields as well. Additional fields can be requested
117+ using ``meta`` parameter. If it's used, then it's up to the user to
118+ list all the required fields, so only few default fields would be
119+ added except requested ones::
120120
121121 >>> jobs_summary = project.jobs.iter(meta=['scheduled_by', ])
122122
123123 - by default :meth:`Jobs.iter` returns maximum last 1000 results.
124- Pagination is available using start parameter::
124+ Pagination is available using start parameter::
125125
126126 >>> jobs_summary = spider.jobs.iter(start=1000)
127127
@@ -227,13 +227,14 @@ def run(self, spider=None, units=None, priority=None, meta=None,
227227 return Job (self ._client , response ['jobid' ])
228228
229229 def get (self , job_key ):
230- """Get a Job with a given job_key.
230+ """Get a :class:` Job` with a given job_key.
231231
232232 :param job_key: a string job key.
233233
234234 job_key's project component should match the project used to get
235235 :class:`Jobs` instance, and job_key's spider component should match
236- the spider (if :attr:`Spider.jobs` was used).
236+ the spider (if :class:`~scrapinghub.client.spiders.Spider` was used
237+ to get :class:`Jobs` instance).
237238
238239 :return: a job object.
239240 :rtype: :class:`Job`
@@ -509,7 +510,7 @@ class JobMeta(_MappingProxy):
509510 """Class representing job metadata.
510511
511512 Not a public constructor: use :class:`Job` instance to get a
512- :class:`JobMeta` instance. See :attr:`Job.metadata` attribute.
513+ :class:`JobMeta` instance. See :attr:`~ Job.metadata` attribute.
513514
514515 Usage:
515516
0 commit comments