Class: QQpush::Android

Inherits:
General show all
Defined in:
lib/qqpush/android.rb

Constant Summary

Constants inherited from General

General::PROTOCAL, General::ROOT_URL, General::SERVICES, General::VERSION

Instance Attribute Summary

Attributes inherited from General

#request_params, #settings

Instance Method Summary collapse

Methods inherited from General

#general_params, #param_sign, #request, #request_url

Constructor Details

#initialize(params = {}) ⇒ Android

Returns a new instance of Android.



3
4
5
6
7
8
# File 'lib/qqpush/android.rb', line 3

def initialize(params = {})
  super
  @request_params[:message_type] = 1
  @request_params[:message] =
    { title: params[:param_title], content: params[:param_content] }
end