class StreamRails::Config

Class used to initialize configuration object.

Attributes

api_hostname[RW]
api_key[RW]
api_secret[RW]
api_site_id[RW]
enabled[RW]
location[RW]
news_feeds[RW]
notification_feed[RW]
timeout[RW]
user_feed[RW]

Public Class Methods

new() click to toggle source
# File lib/stream_rails/config.rb, line 16
def initialize
  @enabled    = true
  @news_feeds = { timeline: 'timeline', timeline_aggregated: 'timeline_aggregated' }
  @notification_feed = 'notification'
  @user_feed = 'user'
  @timeout = 3
end

Public Instance Methods

feed_configs() click to toggle source
# File lib/stream_rails/config.rb, line 24
def feed_configs
  { news_feeds: @news_feeds,
    notification_feed: @notification_feed,
    user_feed: @user_feed }
end