Class: JPush::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/jpush/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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_secretObject (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

#aliasesObject



25
26
27
# File 'lib/jpush/client.rb', line 25

def aliases
  @alias ||= Alias.new(self)
end

#devicesObject



17
18
19
# File 'lib/jpush/client.rb', line 17

def devices
  @devices ||= Device.new(self)
end

#pusherObject



29
30
31
# File 'lib/jpush/client.rb', line 29

def pusher
  @push ||= Pusher.new(self)
end

#reporterObject



33
34
35
# File 'lib/jpush/client.rb', line 33

def reporter
  @report ||= Report.new(self)
end

#schedulesObject



37
38
39
# File 'lib/jpush/client.rb', line 37

def schedules
  @schedule ||= Schedules.new(self)
end

#tagsObject



21
22
23
# File 'lib/jpush/client.rb', line 21

def tags
  @tag ||= Tag.new(self)
end