Class: Files::EmailPreferenceNotification
- Inherits:
-
Object
- Object
- Files::EmailPreferenceNotification
- Defined in:
- lib/files.com/models/email_preference_notification.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#id ⇒ Object
int64 - Email preferences ID.
-
#initialize(attributes = {}, options = {}) ⇒ EmailPreferenceNotification
constructor
A new instance of EmailPreferenceNotification.
-
#path ⇒ Object
string - Folder path This must be slash-delimited, but it must neither start nor end with a slash.
-
#send_interval ⇒ Object
string - The time interval that notifications are aggregated to.
-
#unsubscribed ⇒ Object
boolean - Is unsubscribed?.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ EmailPreferenceNotification
Returns a new instance of EmailPreferenceNotification.
7 8 9 10 |
# File 'lib/files.com/models/email_preference_notification.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/email_preference_notification.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/email_preference_notification.rb', line 5 def @options end |
Instance Method Details
#id ⇒ Object
int64 - Email preferences ID
13 14 15 |
# File 'lib/files.com/models/email_preference_notification.rb', line 13 def id @attributes[:id] end |
#path ⇒ Object
string - Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
18 19 20 |
# File 'lib/files.com/models/email_preference_notification.rb', line 18 def path @attributes[:path] end |
#send_interval ⇒ Object
string - The time interval that notifications are aggregated to. Can be five_minutes, fifteen_minutes, hourly, or daily
23 24 25 |
# File 'lib/files.com/models/email_preference_notification.rb', line 23 def send_interval @attributes[:send_interval] end |
#unsubscribed ⇒ Object
boolean - Is unsubscribed?
28 29 30 |
# File 'lib/files.com/models/email_preference_notification.rb', line 28 def unsubscribed @attributes[:unsubscribed] end |