Sha256: ce236c2b7397da060a09a7f93f8bf9b56ef9033b228fe442af242f3d972d7e47

Contents?: true

Size: 460 Bytes

Versions: 7

Compression:

Stored size: 460 Bytes

Contents

require 'twitter/base'
require 'twitter/creatable'
require 'twitter/tweet'
require 'twitter/user'

module Twitter
  module Action
    class Tweet < Twitter::Base
      include Twitter::Creatable
      attr_reader :max_position, :min_position

      # @return [Array<Twitter::User>]
      def sources
        @sources = Array(@attrs[:sources]).map do |user|
          Twitter::User.fetch_or_new(user)
        end
      end

    end
    Status = Tweet
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twitter-4.4.0 lib/twitter/action/tweet.rb
twitter-4.3.0 lib/twitter/action/tweet.rb
twitter-4.2.0 lib/twitter/action/tweet.rb
twitter-4.1.2 lib/twitter/action/tweet.rb
twitter-4.1.1 lib/twitter/action/tweet.rb
twitter-4.1.0 lib/twitter/action/tweet.rb
twitter-4.0.0 lib/twitter/action/tweet.rb