Class: MyPusher::Client
- Inherits:
-
Object
- Object
- MyPusher::Client
- Defined in:
- app/my_lib/my_pusher/client.rb
Overview
typed: ignore
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'app/my_lib/my_pusher/client.rb', line 3 def client @client end |