Sha256: 94bd1506127fcfbd66adf5d9bfa65d1f19ef68667d2b4cf5410687efcbdc4d06

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

module Grendel
  class Link
    attr_accessor :document, :user, :uri

    def initialize(document, user, params = {})
      params = Mash.new(params)
      @document = document
      @user = user
      @uri = params[:uri] ?
        URI.parse(params[:uri]).path :
        "/links/" + @user.id # escape this?
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grendel-ruby-0.1.5 lib/grendel/link.rb
grendel-ruby-0.1.4 lib/grendel/link.rb
grendel-ruby-0.1.3 lib/grendel/link.rb