Sha256: 56b64779053c292fdfe53cd8d19a1664e79d613a5bebcb5150909340faeb4222
Contents?: true
Size: 296 Bytes
Versions: 2
Compression:
Stored size: 296 Bytes
Contents
class Subnet include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming attr_accessor :id, :value validates :value, :subnet => true def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
validates_host-1.1.0 | spec/fake_app/subnet.rb |
validates_host-1.0.0 | spec/fake_app/subnet.rb |