obspy.core.inventory.util.PhoneNumber
- class PhoneNumber(area_code, phone_number, country_code=None, description=None)[source]
Bases:
ComparingObject
A simple object representing a phone number.
Attributes
Special Methods
- PhoneNumber.__delattr__(name, /)
Implement delattr(self, name).
- PhoneNumber.__dir__()
Default dir() implementation.
- PhoneNumber.__eq__(other)
- PhoneNumber.__format__(format_spec, /)
Default object formatter.
- PhoneNumber.__ge__(value, /)
Return self>=value.
- PhoneNumber.__getattribute__(name, /)
Return getattr(self, name).
- PhoneNumber.__gt__(value, /)
Return self>value.
- PhoneNumber.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- PhoneNumber.__le__(value, /)
Return self<=value.
- PhoneNumber.__lt__(value, /)
Return self<value.
- PhoneNumber.__ne__(other)
- PhoneNumber.__new__(**kwargs)
- PhoneNumber.__reduce__()
Helper for pickle.
- PhoneNumber.__reduce_ex__(protocol, /)
Helper for pickle.
- PhoneNumber.__repr__()
Return repr(self).
- PhoneNumber.__setattr__(name, value, /)
Implement setattr(self, name, value).
- PhoneNumber.__sizeof__()
Size of object in memory, in bytes.
- PhoneNumber.__str__()
Return str(self).
- PhoneNumber.__subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).