Skip to content

Commit

Permalink
Docstrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Nov 7, 2014
1 parent 9605a00 commit fce864c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcloud/storage/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ def _scalar_property(fieldname):
"""Create a property descriptor around the :class:`_PropertyMixin` helpers.
"""
def _getter(self):
"""Scalar property getter.
"""
return self.properties[fieldname]

def _setter(self, value):
"""Scalar property setter.
"""
self._patch_properties({fieldname: value})

return property(_getter, _setter)
Expand Down

0 comments on commit fce864c

Please sign in to comment.