Sha256: e4092c43c744f3f2ae865a845a5318a36635df7361bd25f03c166316e9c51669
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
class Server include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming attr_accessor :domain_name, :host_name, :ip validates :domain_name, :domain_name => true validates :host_name, :host_name => true validates :ip, :ip => 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/server.rb |
validates_host-1.0.0 | spec/fake_app/server.rb |