Class: ClusterId::V1::Serializer
- Inherits:
-
Object
- Object
- ClusterId::V1::Serializer
- Defined in:
- lib/clusterid/v1/serialization.rb
Overview
The abstract base class of all custom serialization logic.
Direct Known Subclasses
Instance Method Summary collapse
-
#from_data_centre(t) ⇒ Integer
The serialized data centre.
-
#from_environment(t) ⇒ Integer
The serialized environment.
-
#from_type_id(t) ⇒ Integer
The serialized type ID.
Instance Method Details
#from_data_centre(t) ⇒ Integer
Returns the serialized data centre.
15 16 17 |
# File 'lib/clusterid/v1/serialization.rb', line 15 def from_data_centre(t) raise NotImplementedError end |
#from_environment(t) ⇒ Integer
Returns the serialized environment.
9 10 11 |
# File 'lib/clusterid/v1/serialization.rb', line 9 def from_environment(t) raise NotImplementedError end |
#from_type_id(t) ⇒ Integer
Returns the serialized type ID.
21 22 23 |
# File 'lib/clusterid/v1/serialization.rb', line 21 def from_type_id(t) raise NotImplementedError end |