Sha256: 645bde28fe803356f2da8c30ed551e9cf416afad2d7fec6a19a47162b551f2a0
Contents?: true
Size: 430 Bytes
Versions: 7
Compression:
Stored size: 430 Bytes
Contents
module Leap class Report attr_reader :committee, :conclusion, :quorum def initialize(committee, report) raise ArgumentError, 'Reports must identify themselves' unless committee.is_a?(::Leap::Committee) @committee = committee raise ArgumentError, 'Please report with quorum => conclusion' unless report.is_a?(Hash) and report.length == 1 @quorum, @conclusion = report.first end end end
Version data entries
7 entries across 7 versions & 1 rubygems