Class: MyPusher::Client

Inherits:
Object
  • Object
show all
Defined in:
app/my_lib/my_pusher/client.rb

Overview

typed: ignore

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



6
7
8
9
10
11
12
13
14
15
# File 'app/my_lib/my_pusher/client.rb', line 6

def initialize
  Pusher.logger = Rails.logger

  @client = Pusher::Client.new(config)
  @client.connect_timeout = 20
  @client.receive_timeout = 20
  @client.send_timeout = 20

  @client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'app/my_lib/my_pusher/client.rb', line 3

def client
  @client
end