Sha256: 8d984d7037da92f5d802ce8e377a3b9e66b9e8ac7bb923105731d4a304ada66b

Contents?: true

Size: 190 Bytes

Versions: 7

Compression:

Stored size: 190 Bytes

Contents

module Chatterbot
  module Utils
    def id_from_tweet(t)
      t.is_a?(Twitter::Tweet) ? t.id : t
    end

    def id_from_user(u)
      u.is_a?(Twitter::User) ? u.id : u
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chatterbot-1.0.2 lib/chatterbot/utils.rb
chatterbot-1.0.1 lib/chatterbot/utils.rb
chatterbot-1.0.0 lib/chatterbot/utils.rb
chatterbot-0.9.3 lib/chatterbot/utils.rb
chatterbot-0.9.2 lib/chatterbot/utils.rb
chatterbot-0.9.1 lib/chatterbot/utils.rb
chatterbot-0.9.0 lib/chatterbot/utils.rb