MCPcopy Create free account
hub / github.com/bundesAPI/smard-api / get

Method get

python-client/deutschland/smard/model_utils.py:499–504  ·  view source on GitHub ↗

returns the value of an attribute or some default value if the attribute was not set

(self, name, default=None)

Source from the content-addressed store, hash-verified

497 self.set_attribute(name, value)
498
499 def get(self, name, default=None):
500 """returns the value of an attribute or some default value if the attribute was not set"""
501 if name in self.required_properties:
502 return self.__dict__[name]
503
504 return self.__dict__["_data_store"].get(name, default)
505
506 def __getitem__(self, name):
507 """get the value of an attribute using square-bracket notation: `instance[attr]`"""

Callers 1

__getitem__Method · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected