Class: Crashbreak::HashSerializer

Inherits:
BasicSerializer show all
Defined in:
lib/crashbreak/serializers/hash_serializer.rb

Direct Known Subclasses

EnvironmentVariablesSerializer

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.get_hash_nameObject



8
9
10
# File 'lib/crashbreak/serializers/hash_serializer.rb', line 8

def get_hash_name
  @hash_name
end

.hash_name(value) ⇒ Object



4
5
6
# File 'lib/crashbreak/serializers/hash_serializer.rb', line 4

def hash_name(value)
  @hash_name = value
end

Instance Method Details

#serializeObject



13
14
15
# File 'lib/crashbreak/serializers/hash_serializer.rb', line 13

def serialize
  { additional_data: { self.class.get_hash_name => hash_value } }
end