Class: Twitterscraper::Type
- Inherits:
-
Object
- Object
- Twitterscraper::Type
- Defined in:
- lib/twitterscraper/type.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Type
constructor
A new instance of Type.
- #search? ⇒ Boolean
- #to_s ⇒ Object
- #user? ⇒ Boolean
Constructor Details
#initialize(value) ⇒ Type
Returns a new instance of Type.
3 4 5 |
# File 'lib/twitterscraper/type.rb', line 3 def initialize(value) @value = value end |
Instance Method Details
#search? ⇒ Boolean
7 8 9 |
# File 'lib/twitterscraper/type.rb', line 7 def search? @value == 'search' end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/twitterscraper/type.rb', line 15 def to_s @value end |
#user? ⇒ Boolean
11 12 13 |
# File 'lib/twitterscraper/type.rb', line 11 def user? @value == 'user' end |