Class: JPush::Client
- Inherits:
-
Object
- Object
- JPush::Client
- Defined in:
- lib/jpush/client.rb
Instance Attribute Summary collapse
-
#app_key ⇒ Object
readonly
Returns the value of attribute app_key.
-
#master_secret ⇒ Object
readonly
Returns the value of attribute master_secret.
Instance Method Summary collapse
- #aliases ⇒ Object
- #devices ⇒ Object
-
#initialize(app_key, master_secret) ⇒ Client
constructor
A new instance of Client.
- #pusher ⇒ Object
- #reporter ⇒ Object
- #schedules ⇒ Object
- #tags ⇒ Object
Constructor Details
#initialize(app_key, master_secret) ⇒ Client
Returns a new instance of Client.
12 13 14 15 |
# File 'lib/jpush/client.rb', line 12 def initialize(app_key, master_secret) @app_key = app_key @master_secret = master_secret end |
Instance Attribute Details
#app_key ⇒ Object (readonly)
Returns the value of attribute app_key.
9 10 11 |
# File 'lib/jpush/client.rb', line 9 def app_key @app_key end |
#master_secret ⇒ Object (readonly)
Returns the value of attribute master_secret.
10 11 12 |
# File 'lib/jpush/client.rb', line 10 def master_secret @master_secret end |
Instance Method Details
#aliases ⇒ Object
25 26 27 |
# File 'lib/jpush/client.rb', line 25 def aliases @alias ||= Alias.new(self) end |
#devices ⇒ Object
17 18 19 |
# File 'lib/jpush/client.rb', line 17 def devices @devices ||= Device.new(self) end |
#pusher ⇒ Object
29 30 31 |
# File 'lib/jpush/client.rb', line 29 def pusher @push ||= Pusher.new(self) end |
#reporter ⇒ Object
33 34 35 |
# File 'lib/jpush/client.rb', line 33 def reporter @report ||= Report.new(self) end |