Sha256: 61dc870b61d1fe12806b9ffbaf5d611b8859774a78a783167ce99b047bee0ccb

Contents?: true

Size: 637 Bytes

Versions: 19

Compression:

Stored size: 637 Bytes

Contents

require 'twitter/action/tweet'

module Twitter
  module Action
    class Reply < Twitter::Action::Tweet

      # A collection of tweets that reply to a user
      #
      # @return [Array<Twitter::Tweet>]
      def target_objects
        @target_objects = Array(@attrs[:target_objects]).map do |tweet|
          Twitter::Tweet.fetch_or_new(tweet)
        end
      end

      # A collection that contains the replied-to tweets
      #
      # @return [Array<Twitter::Tweet>]
      def targets
        @targets = Array(@attrs[:targets]).map do |tweet|
          Twitter::Tweet.fetch_or_new(tweet)
        end
      end

    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
twitter-4.8.1 lib/twitter/action/reply.rb
twitter-4.8.0 lib/twitter/action/reply.rb
hackeroo-0.1.0 lib/hackeroo/action/reply.rb
twitter-4.7.0 lib/twitter/action/reply.rb
twitter-4.6.2 lib/twitter/action/reply.rb
twitter-4.6.1 lib/twitter/action/reply.rb
twitter-4.6.0 lib/twitter/action/reply.rb
twitter-4.5.0 lib/twitter/action/reply.rb
twitter-4.4.4 lib/twitter/action/reply.rb
twitter-4.4.3 lib/twitter/action/reply.rb
twitter-4.4.2 lib/twitter/action/reply.rb
twitter-4.4.1 lib/twitter/action/reply.rb
twitter-4.4.0 lib/twitter/action/reply.rb
twitter-4.3.0 lib/twitter/action/reply.rb
twitter-4.2.0 lib/twitter/action/reply.rb
twitter-4.1.2 lib/twitter/action/reply.rb
twitter-4.1.1 lib/twitter/action/reply.rb
twitter-4.1.0 lib/twitter/action/reply.rb
twitter-4.0.0 lib/twitter/action/reply.rb