Class: Twterm::Hashtag

Inherits:
Object
  • Object
show all
Defined in:
lib/twterm/hashtag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/twterm/hashtag.rb', line 3

def text
  @text
end