Class: MessagePub::Reply
- Inherits:
-
Object
- Object
- MessagePub::Reply
- Defined in:
- lib/messagepub/reply.rb
Overview
Represents a MessagePub reply.. For more info, visit messagepub.com/documentation/replies
Instance Attribute Summary collapse
-
#address ⇒ Object
The address for the person that replies.
-
#body ⇒ Object
The content of the reply.
-
#channel ⇒ Object
The communication channel where this reply was done.
-
#id ⇒ Object
The unique id for this reply.
-
#notification_id ⇒ Object
The ID of the notification associated with this reply.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Reply
constructor
A new instance of Reply.
Constructor Details
#initialize(options = {}) ⇒ Reply
Returns a new instance of Reply.
24 25 26 27 28 29 30 |
# File 'lib/messagepub/reply.rb', line 24 def initialize(={}) @notification_id = [:notification_id] @channel = [:channel] @address = [:address] @body = [:body] @id = nil end |
Instance Attribute Details
#address ⇒ Object
The address for the person that replies. Depending on the channel, this can be a phone number, an email, a username, etc…
16 17 18 |
# File 'lib/messagepub/reply.rb', line 16 def address @address end |
#body ⇒ Object
The content of the reply.
19 20 21 |
# File 'lib/messagepub/reply.rb', line 19 def body @body end |
#channel ⇒ Object
The communication channel where this reply was done. Must be one of the following: sms, phone, email, twitter, gchat, aim.
12 13 14 |
# File 'lib/messagepub/reply.rb', line 12 def channel @channel end |
#id ⇒ Object
The unique id for this reply.
22 23 24 |
# File 'lib/messagepub/reply.rb', line 22 def id @id end |
#notification_id ⇒ Object
The ID of the notification associated with this reply.
8 9 10 |
# File 'lib/messagepub/reply.rb', line 8 def notification_id @notification_id end |