Class: AliyunMns::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/aliyun_mns/notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content_hash) ⇒ Notification

Returns a new instance of Notification.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/aliyun_mns/notification.rb', line 6

def initialize(content_hash)
  @message_id = content_hash["MessageId"]
  @message_MD5 = content_hash["MessageMD5"]
  @message = content_hash["Message"]
  @message_tag = content_hash["MessageTag"]
  @publish_time = content_hash["PublishTime"]
  @subscriber = content_hash["Subscriber"]
  @subscription_name = content_hash["SubscriptionName"]
  @topic_name = content_hash["TopicName"]
  @topic_owner = content_hash["TopicOwner"]
  @message_format = content_hash["format"]
  @message_controller = content_hash["Controller"]
  @action = content_hash["Action"]
  @send_record = content_hash["SendRecord"]
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def action
  @action
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def message
  @message
end

#message_controllerObject (readonly)

Returns the value of attribute message_controller.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def message_controller
  @message_controller
end

#message_formatObject (readonly)

Returns the value of attribute message_format.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def message_format
  @message_format
end

#message_idObject (readonly)

Returns the value of attribute message_id.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def message_id
  @message_id
end

#message_MD5Object (readonly)

Returns the value of attribute message_MD5.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def message_MD5
  @message_MD5
end

#message_tagObject (readonly)

Returns the value of attribute message_tag.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def message_tag
  @message_tag
end

#publish_timeObject (readonly)

Returns the value of attribute publish_time.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def publish_time
  @publish_time
end

#send_recordObject (readonly)

Returns the value of attribute send_record.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def send_record
  @send_record
end

#subscriberObject (readonly)

Returns the value of attribute subscriber.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def subscriber
  @subscriber
end

#subscription_nameObject (readonly)

Returns the value of attribute subscription_name.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def subscription_name
  @subscription_name
end

#topic_nameObject (readonly)

Returns the value of attribute topic_name.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def topic_name
  @topic_name
end

#topic_ownerObject (readonly)

Returns the value of attribute topic_owner.



3
4
5
# File 'lib/aliyun_mns/notification.rb', line 3

def topic_owner
  @topic_owner
end