Class: Files::EmailPreferenceNotification

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/email_preference_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (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

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/email_preference_notification.rb', line 5

def options
  @options
end

Instance Method Details

#idObject

int64 - Email preferences ID



13
14
15
# File 'lib/files.com/models/email_preference_notification.rb', line 13

def id
  @attributes[:id]
end

#pathObject

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_intervalObject

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

#unsubscribedObject

boolean - Is unsubscribed?



28
29
30
# File 'lib/files.com/models/email_preference_notification.rb', line 28

def unsubscribed
  @attributes[:unsubscribed]
end