Sha256: 6bc8475c2a6f089dbbdcfaee956fd1d642159fdc1261e815d5eb134db27db853

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

module Twitterscraper
  class Type
    def initialize(value)
      @value = value
    end

    def search?
      @value == 'search'
    end

    def user?
      @value == 'user'
    end

    def to_s
      @value
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twitterscraper-ruby-0.20.1 lib/twitterscraper/type.rb
twitterscraper-ruby-0.20.0 lib/twitterscraper/type.rb
twitterscraper-ruby-0.19.0 lib/twitterscraper/type.rb