Method: MdnQuery::Entry#initialize

Defined in:
lib/mdn_query/entry.rb

#initialize(title, description, url) ⇒ MdnQuery::Entry

Creates a new entry.

Parameters:

  • title (String)

    the title of the entry

  • description (String)

    a small excerpt of the entry

  • url (String)

    the URL to the entry on the web



13
14
15
16
17
18
# File 'lib/mdn_query/entry.rb', line 13

def initialize(title, description, url)
  @title = title
  @description = description
  @url = url
  @content = nil
end