Sha256: d8c7c0b3bc4983591e7314d6dbbbb5e5fbd16e6ff05c9b9d5038e25b1778e622
Contents?: true
Size: 626 Bytes
Versions: 5
Compression:
Stored size: 626 Bytes
Contents
require 'date' module Bipm module Data module Outcomes class Consideration def initialize(resolution, index) @resolution = resolution @index = index raise IndexError unless document end def document @resolution.document.dig("considerations", index) end attr_reader :resolution, :index def type document["type"].to_sym end def date_effective Date.parse(document["date_effective"]) end def message document["message"] end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems