Sha256: 27346221656c48e27c73191c9d68ed32d6642fd7d6d37faae8782f5237e7903a

Contents?: true

Size: 400 Bytes

Versions: 5

Compression:

Stored size: 400 Bytes

Contents

module Landable
  module Traffic
    class Referer < ActiveRecord::Base
      include Landable::Traffic::TableName

      lookup_for :domain,       class_name: Domain
      lookup_for :path,         class_name: Path
      lookup_for :query_string, class_name: QueryString

      def url
        uri.to_s
      end

      def uri
        URI.join("http://#{domain}", path)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
landable-1.9.2 app/models/landable/traffic/referer.rb
landable-1.9.1 app/models/landable/traffic/referer.rb
landable-1.9.0 app/models/landable/traffic/referer.rb
landable-1.9.0.rc2 app/models/landable/traffic/referer.rb
landable-1.9.0.rc1 app/models/landable/traffic/referer.rb