Module: Egree::Serializers::CaseSerializer

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

Class Method Summary collapse

Class Method Details

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



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

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