class Crashbreak::HashSerializer
Public Class Methods
get_hash_name()
click to toggle source
# File lib/crashbreak/serializers/hash_serializer.rb, line 8 def get_hash_name @hash_name end
hash_name(value)
click to toggle source
# File lib/crashbreak/serializers/hash_serializer.rb, line 4 def hash_name(value) @hash_name = value end
Public Instance Methods
serialize()
click to toggle source
# File lib/crashbreak/serializers/hash_serializer.rb, line 13 def serialize { additional_data: { self.class.get_hash_name => hash_value } } end