Class: Kms::SearchItem

Inherits:
Object
  • Object
show all
Includes:
Liquor::Dropable, Liquor::External
Defined in:
lib/kms/search_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ SearchItem

Returns a new instance of SearchItem.



6
7
8
9
10
# File 'lib/kms/search_item.rb', line 6

def initialize opts
  @title = opts[:title]
  @link = opts[:link]
  @content = opts[:content]
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



5
6
7
# File 'lib/kms/search_item.rb', line 5

def content
  @content
end

Returns the value of attribute link.



5
6
7
# File 'lib/kms/search_item.rb', line 5

def link
  @link
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/kms/search_item.rb', line 5

def title
  @title
end