Sha256: 9b5350647634d6343fa443303c303234fb8d6578fe531299972f3844f3a26163

Contents?: true

Size: 623 Bytes

Versions: 4

Compression:

Stored size: 623 Bytes

Contents

module Connfu
  module Provisioning

    #
    # This class models a connFu Twitter channel
    #
    class Twitter < Channel

      # Twitter accounts associated to that Twitter channel
      attr_accessor :accounts

      # string that filters the tweets to retrieve only the desired hashtag
      attr_accessor :filter

      def initialize(params)
        super(params)
        self.channel_type = "twitter"
      end

      # Creates a hash with the Twitter instance info
      def to_hash
        {"uid" => uid, "channel_type" => channel_type, "accounts" => accounts, "filter" => filter}
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
connfu-client-0.1.6 lib/connfu/provisioning/twitter.rb
connfu-client-0.1.5 lib/connfu/provisioning/twitter.rb
connfu-client-0.1.4 lib/connfu/provisioning/twitter.rb
connfu-client-0.1.3 lib/connfu/provisioning/twitter.rb