Module: ADIWG::Mdtranslator::Writers::MdJson::DescriptiveResult

Defined in:
lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb

Class Method Summary collapse

Class Method Details

.build(hResult) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb', line 10

def self.build(hResult)
  Jbuilder.new do |json|
    json.dateTime hResult[:dateTime]
    json.scope Scope.build(hResult[:scope]) unless hResult[:scope].nil?
    json.statement hResult[:statement]
  end
end