Sha256: fe23018fda84744278f117fcb48445b55162952857272e15f995738b73d3d207
Contents?: true
Size: 612 Bytes
Versions: 5
Compression:
Stored size: 612 Bytes
Contents
require 'date' module Bipm module Data module Outcomes class Action def initialize(resolution, index) @resolution = resolution @index = index raise IndexError unless document end def document @resolution.document.dig("actions", 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