Class: Kms::SearchItem
- Inherits:
-
Object
- Object
- Kms::SearchItem
- Includes:
- Liquor::Dropable, Liquor::External
- Defined in:
- lib/kms/search_item.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(opts) ⇒ SearchItem
constructor
A new instance of SearchItem.
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
#content ⇒ Object (readonly)
Returns the value of attribute content.
5 6 7 |
# File 'lib/kms/search_item.rb', line 5 def content @content end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
5 6 7 |
# File 'lib/kms/search_item.rb', line 5 def link @link end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/kms/search_item.rb', line 5 def title @title end |