Module: ADIWG::Mdtranslator::Writers::MdJson::Attribute

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

Class Method Summary collapse

Class Method Details

.build(hAttribute) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_attribute.rb', line 17

def self.build(hAttribute)

   @Namespace = ADIWG::Mdtranslator::Writers::MdJson

   Jbuilder.new do |json|
      json.sequenceIdentifier hAttribute[:sequenceIdentifier]
      json.sequenceIdentifierType hAttribute[:sequenceIdentifierType]
      json.attributeDescription hAttribute[:attributeDescription]
      json.attributeIdentifier @Namespace.json_map(hAttribute[:attributeIdentifiers], Identifier)
      json.minValue hAttribute[:minValue]
      json.maxValue hAttribute[:maxValue]
      json.units hAttribute[:units]
      json.scaleFactor hAttribute[:scaleFactor]
      json.offset hAttribute[:offset]
      json.meanValue hAttribute[:meanValue]
      json.numberOfValues hAttribute[:numberOfValues]
      json.standardDeviation hAttribute[:standardDeviation]
      json.bitsPerValue hAttribute[:bitsPerValue]
      json.rangeElementDescription hAttribute[:rangeElementDescription]
      json.boundMin hAttribute[:boundMin]
      json.boundMax hAttribute[:boundMax]
      json.boundUnits hAttribute[:boundUnits]
      json.peakResponse hAttribute[:peakResponse]
      json.toneGradations hAttribute[:toneGradations]
      json.bandBoundaryDefinition hAttribute[:bandBoundaryDefinition]
      json.nominalSpatialResolution hAttribute[:nominalSpatialResolution]
      json.transferFunctionType hAttribute[:transferFunctionType]
      json.transmittedPolarization hAttribute[:transmittedPolarization]
      json.detectedPolarization hAttribute[:detectedPolarization]
   end

end