Class: Crashbreak::HashSerializer
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.get_hash_name ⇒ Object
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
#serialize ⇒ Object
13
14
15
|
# File 'lib/crashbreak/serializers/hash_serializer.rb', line 13
def serialize
{ additional_data: { self.class.get_hash_name => hash_value } }
end
|