Sha256: b2d237d3e37c7f31886cc653989985541639792b661819d9835ea90700e309f3

Contents?: true

Size: 585 Bytes

Versions: 18

Compression:

Stored size: 585 Bytes

Contents

require 'twitter/action/favorite'
require 'twitter/action/follow'
require 'twitter/action/list_member_added'
require 'twitter/action/mention'
require 'twitter/action/reply'
require 'twitter/action/retweet'
require 'twitter/factory'

module Twitter
  class ActionFactory < Twitter::Factory

    # Instantiates a new action object
    #
    # @param attrs [Hash]
    # @raise [ArgumentError] Error raised when supplied argument is missing an :action key.
    # @return [Twitter::Action]
    def self.fetch_or_new(attrs={})
      super(:action, Twitter::Action, attrs)
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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