Sha256: 34639c81e2142374d990ce21aca9e2602b82fef6514c2bccd94fddafbeeefe82
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module Inforouter class RuleItem < Record # Rule item name. attr_accessor :name # Rule item value. attr_accessor :value # @return [Hash] def to_hash { :Name => name, :Value => value } end # @return [String] def value if !!@value == @value @value ? 'allows' : 'disallows' else @value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inforouter-0.2.0 | lib/inforouter/rule_item.rb |