Class: Twterm::Hashtag
- Inherits:
-
Object
- Object
- Twterm::Hashtag
- Defined in:
- lib/twterm/hashtag.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(hashtag) ⇒ Hashtag
constructor
A new instance of Hashtag.
Constructor Details
#initialize(hashtag) ⇒ Hashtag
Returns a new instance of Hashtag.
5 6 7 |
# File 'lib/twterm/hashtag.rb', line 5 def initialize(hashtag) @text = hashtag.text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/twterm/hashtag.rb', line 3 def text @text end |