Class: JPush::Receiveds

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReceiveds

Returns a new instance of Receiveds.


48
49
50
51
52
# File 'lib/jpush/model/receiveds_result.rb', line 48

def initialize
  @msg_id = nil
  @android_received = nil
  @ios_apns_sent = nil
end

Instance Attribute Details

#android_receivedObject

Returns the value of attribute android_received


47
48
49
# File 'lib/jpush/model/receiveds_result.rb', line 47

def android_received
  @android_received
end

#ios_apns_sentObject

Returns the value of attribute ios_apns_sent


47
48
49
# File 'lib/jpush/model/receiveds_result.rb', line 47

def ios_apns_sent
  @ios_apns_sent
end

#msg_idObject

Returns the value of attribute msg_id


47
48
49
# File 'lib/jpush/model/receiveds_result.rb', line 47

def msg_id
  @msg_id
end

Instance Method Details

#toJSONObject


54
55
56
57
58
59
60
# File 'lib/jpush/model/receiveds_result.rb', line 54

def toJSON
  array = {}
  array['msg_id'] = @msg_id
  array['android_received'] = @android_received
  array['ios_apns_sent'] = @ios_apns_sent
  return array
end