Sha256: 2f0446b20223da4e0b0fa12ffb90de6120b982dd4ed533114cd1198a113d5b94

Contents?: true

Size: 1012 Bytes

Versions: 1

Compression:

Stored size: 1012 Bytes

Contents

#
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This file is part of Ronin.
#
# Ronin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ronin is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ronin.  If not, see <http://www.gnu.org/licenses/>.
#

require 'ronin/model'
require 'ronin/model/has_unique_name'

module Ronin
  class URLScheme

    include Model
    include Model::HasUniqueName

    # primary key of the URL Scheme
    property :id, Serial

    # The URLs that use the scheme
    has 1..n, :urls, :model => 'URL'

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-1.0.0.pre4 lib/ronin/url_scheme.rb