Sha256: 571d322d89d5809903ae24d895df1d9c008fcb112fe5d12f7f92212fef9c565c

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

module Freebase
  class ItemLink

    # Title of the item
    attr_reader :title

    # URL of the item
    attr_reader :url

    #
    # Creates a new ItemLink with the specified _title_ and _url_.
    #
    def initialize(title,url)
      @title = title
      @url = url
    end

    #
    # Returns the title of the item-link in +String+ form.
    #
    def to_s
      @title.to_s
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
freescrape-0.0.9 lib/freebase/item_link.rb