Class: Hatena::Keyword
- Inherits:
-
Struct
- Object
- Struct
- Hatena::Keyword
- Defined in:
- lib/hatena/keyword.rb,
lib/hatena/keyword.rb
Defined Under Namespace
Classes: Link, Retrieve, Service
Instance Attribute Summary collapse
-
#cname ⇒ Object
Returns the value of attribute cname.
-
#refcount ⇒ Object
Returns the value of attribute refcount.
-
#score ⇒ Object
Returns the value of attribute score.
-
#word ⇒ Object
Returns the value of attribute word.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cname ⇒ Object
Returns the value of attribute cname
3 4 5 |
# File 'lib/hatena/keyword.rb', line 3 def cname @cname end |
#refcount ⇒ Object
Returns the value of attribute refcount
3 4 5 |
# File 'lib/hatena/keyword.rb', line 3 def refcount @refcount end |
#score ⇒ Object
Returns the value of attribute score
3 4 5 |
# File 'lib/hatena/keyword.rb', line 3 def score @score end |
#word ⇒ Object
Returns the value of attribute word
3 4 5 |
# File 'lib/hatena/keyword.rb', line 3 def word @word end |
Class Method Details
.[](body) ⇒ Object
19 20 21 |
# File 'lib/hatena/keyword.rb', line 19 def [](body) search(body).map(&:to_s).uniq end |
Instance Method Details
#to_s ⇒ Object
6 7 8 |
# File 'lib/hatena/keyword.rb', line 6 def to_s word end |