Sha256: 773afd3c0db6352eb40a78d6c1e52998ef148b8cc793924cc6b02b296cc751db

Contents?: true

Size: 801 Bytes

Versions: 43

Compression:

Stored size: 801 Bytes

Contents

# frozen_string_literal: true

module Files
  class EmailPreferenceNotification
    attr_reader :options, :attributes

    def initialize(attributes = {}, options = {})
      @attributes = attributes || {}
      @options = options || {}
    end

    # int64 - Email preferences ID
    def id
      @attributes[:id]
    end

    # string - Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
    def path
      @attributes[:path]
    end

    # string - The time interval that notifications are aggregated to.  Can be five_minutes, fifteen_minutes, hourly, or daily
    def send_interval
      @attributes[:send_interval]
    end

    # boolean - Is unsubscribed?
    def unsubscribed
      @attributes[:unsubscribed]
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
files.com-1.0.9 lib/files.com/models/email_preference_notification.rb
files.com-1.0.8 lib/files.com/models/email_preference_notification.rb
files.com-1.0.7 lib/files.com/models/email_preference_notification.rb