Class: MailRoom::Delivery::Postback::Options
- Inherits:
-
Struct
- Object
- Struct
- MailRoom::Delivery::Postback::Options
- Defined in:
- lib/mail_room/delivery/postback.rb
Instance Attribute Summary collapse
-
#delivery_token ⇒ Object
Returns the value of attribute delivery_token.
-
#delivery_url ⇒ Object
Returns the value of attribute delivery_url.
Instance Method Summary collapse
-
#initialize(mailbox) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(mailbox) ⇒ Options
Returns a new instance of Options.
9 10 11 12 13 14 |
# File 'lib/mail_room/delivery/postback.rb', line 9 def initialize(mailbox) delivery_url = mailbox.delivery_url || mailbox.[:delivery_url] delivery_token = mailbox.delivery_token || mailbox.[:delivery_token] super(delivery_url, delivery_token) end |
Instance Attribute Details
#delivery_token ⇒ Object
Returns the value of attribute delivery_token
8 9 10 |
# File 'lib/mail_room/delivery/postback.rb', line 8 def delivery_token @delivery_token end |
#delivery_url ⇒ Object
Returns the value of attribute delivery_url
8 9 10 |
# File 'lib/mail_room/delivery/postback.rb', line 8 def delivery_url @delivery_url end |