Module: Assently::Serializers::CaseSerializer

Defined in:
lib/assently/serializers/case_serializer.rb

Class Method Summary collapse

Class Method Details

.serialize(signature_case, options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/assently/serializers/case_serializer.rb', line 8

def self.serialize signature_case, options = {}
  signature_case_api_hash = Assently::ApiMappers::CaseMapper.to_api signature_case
  options_api_hash = Assently::ApiMappers::CaseOptionsMapper.to_api options
  JSON.pretty_generate signature_case_api_hash.merge(options_api_hash)
end