Class: Omniship::Notification
Instance Attribute Summary collapse
-
#email ⇒ Object
(also: #email_address)
readonly
Returns the value of attribute email.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#locale_code ⇒ Object
readonly
Returns the value of attribute locale_code.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#initialize(options = {}) ⇒ Notification
Returns a new instance of Notification.
11 12 13 14 15 16 |
# File 'lib/omniship/notification.rb', line 11 def initialize( = {}) @email = [:email] @format = [:format] @language = [:language] @locale_code = [:locale_code] end |
Instance Attribute Details
#email ⇒ Object (readonly) Also known as: email_address
Returns the value of attribute email.
4 5 6 |
# File 'lib/omniship/notification.rb', line 4 def email @email end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
5 6 7 |
# File 'lib/omniship/notification.rb', line 5 def format @format end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
6 7 8 |
# File 'lib/omniship/notification.rb', line 6 def language @language end |
#locale_code ⇒ Object (readonly)
Returns the value of attribute locale_code.
7 8 9 |
# File 'lib/omniship/notification.rb', line 7 def locale_code @locale_code end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/omniship/notification.rb', line 3 def @options end |