Sha256: da0b78846d96e4345f4ee0d61022859b7aa346070c4c441921008b476c930d5a
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true 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.3.0 | spec/fake_app/server.rb |
validates_host-1.2.0 | spec/fake_app/server.rb |