class GrowViral::Warehouse::Client
Attributes
config[R]
Public Class Methods
new(env)
click to toggle source
# File lib/warehouse/client.rb, line 6 def initialize(env) @config = Configuration.new(env) end
Public Instance Methods
follow_history(uid)
click to toggle source
# File lib/warehouse/client.rb, line 18 def follow_history(uid) FetchesFollowHistory.fetch(uid, config: config) end
has_existing_relationship?(uid, following_uid)
click to toggle source
# File lib/warehouse/client.rb, line 27 def has_existing_relationship?(uid, following_uid) ChecksFollowHistory.exists?(uid, following_uid, config: config) end
has_follow_history?(uid, following_uid)
click to toggle source
# File lib/warehouse/client.rb, line 22 def has_follow_history?(uid, following_uid) p "has_folow_history? is deprecated. Use has_existing_relationship?" ChecksFollowHistory.exists?(uid, following_uid, config: config) end
preload_users(uids, options = {})
click to toggle source
# File lib/warehouse/client.rb, line 31 def preload_users(uids, options = {}) PreloadsUsers.preload(uids, options, config: config) end
register_follow!(uid, following_uid)
click to toggle source
# File lib/warehouse/client.rb, line 10 def register_follow!(uid, following_uid) RecordsFollow.register(uid, following_uid, config: config) end
register_unfollow!(uid, following_uid)
click to toggle source
# File lib/warehouse/client.rb, line 14 def register_unfollow!(uid, following_uid) RecordsUnfollow.register(uid, following_uid, config: config) end
users(uids, options = {})
click to toggle source
# File lib/warehouse/client.rb, line 35 def users(uids, options = {}) FetchesUsers.fetch(uids, options, config: config) end