Class: AliyunMns::Notification
- Inherits:
-
Object
- Object
- AliyunMns::Notification
- Defined in:
- lib/aliyun_mns/notification.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#message_controller ⇒ Object
readonly
Returns the value of attribute message_controller.
-
#message_format ⇒ Object
readonly
Returns the value of attribute message_format.
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
-
#message_MD5 ⇒ Object
readonly
Returns the value of attribute message_MD5.
-
#message_tag ⇒ Object
readonly
Returns the value of attribute message_tag.
-
#publish_time ⇒ Object
readonly
Returns the value of attribute publish_time.
-
#send_record ⇒ Object
readonly
Returns the value of attribute send_record.
-
#subscriber ⇒ Object
readonly
Returns the value of attribute subscriber.
-
#subscription_name ⇒ Object
readonly
Returns the value of attribute subscription_name.
-
#topic_name ⇒ Object
readonly
Returns the value of attribute topic_name.
-
#topic_owner ⇒ Object
readonly
Returns the value of attribute topic_owner.
Instance Method Summary collapse
-
#initialize(content_hash) ⇒ Notification
constructor
A new instance of Notification.
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
#action ⇒ Object (readonly)
Returns the value of attribute action.
3 4 5 |
# File 'lib/aliyun_mns/notification.rb', line 3 def action @action end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/aliyun_mns/notification.rb', line 3 def @message end |
#message_controller ⇒ Object (readonly)
Returns the value of attribute message_controller.
3 4 5 |
# File 'lib/aliyun_mns/notification.rb', line 3 def @message_controller end |
#message_format ⇒ Object (readonly)
Returns the value of attribute message_format.
3 4 5 |
# File 'lib/aliyun_mns/notification.rb', line 3 def @message_format end |
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
3 4 5 |
# File 'lib/aliyun_mns/notification.rb', line 3 def @message_id end |
#message_MD5 ⇒ Object (readonly)
Returns the value of attribute message_MD5.
3 4 5 |
# File 'lib/aliyun_mns/notification.rb', line 3 def @message_MD5 end |
#message_tag ⇒ Object (readonly)
Returns the value of attribute message_tag.
3 4 5 |
# File 'lib/aliyun_mns/notification.rb', line 3 def @message_tag end |
#publish_time ⇒ Object (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_record ⇒ Object (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 |
#subscriber ⇒ Object (readonly)
Returns the value of attribute subscriber.
3 4 5 |
# File 'lib/aliyun_mns/notification.rb', line 3 def subscriber @subscriber end |
#subscription_name ⇒ Object (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_name ⇒ Object (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_owner ⇒ Object (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 |