parameters: (self)
return_statement: return self._value
docstring: Get the value
docstring_summary: Get the value
docstring_tokens: Get the value
function: def get(self):
          """Get the value"""
          val = self.db.get_attributes(self.id, consistent_read=True)
          if val:
              if 'timestamp' in val:
                  self.timestamp = val['timestamp']
              if 'current_value' in val:
                  self._value = self.item_type(val['current_value'])
              if "last_value" in val and val['last_value'] is not None:
                  self.last_value = self.item_type(val['last_value'])
          return self._value
function_tokens: def get ( self ) : val = self . db . get_attributes ( self . id , consistent_read = True ) if val : if 'timestamp' in val : self . timestamp = val [ 'timestamp' ] if 'current_value' in val : self . _value = self . item_type ( val [ 'current_value' ] ) if "last_value" in val and val [ 'last_value' ] is not None : self . last_value = self . item_type ( val [ 'last_value' ] ) return self . _value