Sha256: 77188acdc564b3ad76d044892d2d4a76bc8e2231807e667176b5c875a30dca0e

Contents?: true

Size: 391 Bytes

Versions: 10

Compression:

Stored size: 391 Bytes

Contents

module Landable
  module Traffic
    class Referer < ActiveRecord::Base
      include Landable::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

10 entries across 10 versions & 1 rubygems

Version Path
landable-1.14.0 app/models/landable/traffic/referer.rb
landable-1.13.2 app/models/landable/traffic/referer.rb
landable-1.13.1 app/models/landable/traffic/referer.rb
landable-1.12.3 app/models/landable/traffic/referer.rb
landable-1.12.2 app/models/landable/traffic/referer.rb
landable-1.12.1 app/models/landable/traffic/referer.rb
landable-1.11.1 app/models/landable/traffic/referer.rb
landable-1.11.0 app/models/landable/traffic/referer.rb
landable-1.10.0.rc2 app/models/landable/traffic/referer.rb
landable-1.10.0.rc1 app/models/landable/traffic/referer.rb