module Unitwise::Standard

The Standard module is responsible for fetching the UCUM specification unit standards and translating them into yaml files. This code is only used for by the rake task `rake unitwise:update_standard` and as such is not normally loaded.

Constants

HOST
PATH

Public Class Methods

body() click to toggle source
# File lib/unitwise/standard.rb, line 20
def body
  @body ||= Net::HTTP.get HOST, PATH
end
hash() click to toggle source
# File lib/unitwise/standard.rb, line 24
def hash
  Nori.new.parse(body)["root"]
end