class Urist::Scenario

Attributes

information[RW]

Public Class Methods

new(options={}) click to toggle source
# File lib/urist/scenario.rb, line 10
def initialize options={}
  @information = options[:information]

  validate!
end

Private Instance Methods

validate!() click to toggle source
# File lib/urist/scenario.rb, line 17
def validate!
  raise ArgumentError, ":information should be assigned to #{self.class}. #{@information.inspect} given." if @information.nil?
  raise ArgumentError, "@links should be a Hash in #{self.class}. #{self.class.links.inspect} given." unless self.class.links.is_a? Hash
end