Sha256: 67b24261fcc92e7cf603215d5646aff576050c54053381e3e6661ebcabe73619

Contents?: true

Size: 526 Bytes

Versions: 15

Compression:

Stored size: 526 Bytes

Contents

module Ardm
  module Fixtures
    class NetworkNode < Ardm::Record
      self.table_name = "network_nodes"

      property :id,               Serial
      property :ip_address,       IPAddress
      property :cidr_subnet_bits, Integer
      property :node_uuid,        UUID

      alias_method :uuid,  :node_uuid
      alias_method :uuid=, :node_uuid=

      def runs_ipv6?
        self.ip_address.ipv6?
      end

      def runs_ipv4?
        self.ip_address.ipv4?
      end
    end # NetworkNode
  end # Fixtures
end # Ardm

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ardm-0.4.0.ar427 spec/fixtures/network_node.rb
ardm-0.4.0 spec/fixtures/network_node.rb
ardm-0.3.2 spec/fixtures/network_node.rb
ardm-0.3.1 spec/fixtures/network_node.rb
ardm-0.3.0 spec/fixtures/network_node.rb
ardm-0.2.7 spec/fixtures/network_node.rb
ardm-0.2.6 spec/fixtures/network_node.rb
ardm-0.2.5 spec/fixtures/network_node.rb
ardm-0.2.4 spec/fixtures/network_node.rb
ardm-0.2.3 spec/fixtures/network_node.rb
ardm-0.2.2 spec/fixtures/network_node.rb
ardm-0.2.1 spec/fixtures/network_node.rb
ardm-0.2.0 spec/fixtures/network_node.rb
ardm-0.1.0 spec/fixtures/network_node.rb
ardm-0.0.1 spec/fixtures/network_node.rb