lib/complexTypes/Fraction.js
function Fraction(fractionDict){
  if(!(this instanceof Fraction))
    return new Fraction(fractionDict)

  fractionDict = fractionDict || {}

  // Check fractionDict has the required fields
  // 
  // checkType('int', 'fractionDict.numerator', fractionDict.numerator, {required: true});
  //  
  // checkType('int', 'fractionDict.denominator', fractionDict.denominator, {required: true});
  //  

  // Init parent class
  Fraction.super_.call(this, fractionDict)

  // Set object properties
  Object.defineProperties(this, {
    numerator: {
      writable: true,
      enumerable: true,
      value: fractionDict.numerator
    },
    denominator: {
      writable: true,
      enumerable: true,
      value: fractionDict.denominator
    }
  })
}
function Fraction(fractionDict){
  if(!(this instanceof Fraction))
    return new Fraction(fractionDict)

  fractionDict = fractionDict || {}

  // Check fractionDict has the required fields
  // 
  // checkType('int', 'fractionDict.numerator', fractionDict.numerator, {required: true});
  //  
  // checkType('int', 'fractionDict.denominator', fractionDict.denominator, {required: true});
  //  

  // Init parent class
  Fraction.super_.call(this, fractionDict)

  // Set object properties
  Object.defineProperties(this, {
    numerator: {
      writable: true,
      enumerable: true,
      value: fractionDict.numerator
    },
    denominator: {
      writable: true,
      enumerable: true,
      value: fractionDict.denominator
    }
  })
}
function Fraction ( fractionDict ) { if ( ! ( this instanceof Fraction ) ) return new Fraction ( fractionDict ) fractionDict = fractionDict || { } // Check fractionDict has the required fields //  // checkType('int', 'fractionDict.numerator', fractionDict.numerator, {required: true}); //   // checkType('int', 'fractionDict.denominator', fractionDict.denominator, {required: true}); //   // Init parent class Fraction . super_ . call ( this , fractionDict ) // Set object properties Object . defineProperties ( this , { numerator : { writable : true , enumerable : true , value : fractionDict . numerator } , denominator : { writable : true , enumerable : true , value : fractionDict . denominator } } ) }
Type that represents a fraction of an integer numerator over an integer
denominator

@constructor module:core/complexTypes.Fraction

@property {external:Integer} numerator
the numerator of the fraction
@property {external:Integer} denominator
the denominator of the fraction
Type that represents a fraction of an integer numerator over an integer denominator