Sha256: e8ab604f7ea31ecc2447751666472ce0645da980d74e871d5098fe11eb2ae5d4

Contents?: true

Size: 1.59 KB

Versions: 83

Compression:

Stored size: 1.59 KB

Contents

module Alula
  # The Generic Preferences for a User
  class UserPreferences < Alula::RestResource
    extend Alula::ResourceAttributes
    extend Alula::RelationshipAttributes
    extend Alula::ApiOperations::Request
    extend Alula::ApiOperations::List

    resource_path 'users/preferences'
    type 'users-preferences'

    # Resource Fields
    # Not all params are used at the moment. See Alula::ResourceAttributes for details
    # on how params are parsed,
    field :id,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: []

    field :user_id,
          type: :string,
          sortable: true,
          filterable: true,
          creatable_by: [],
          patchable_by: []

    field :key,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: [:system, :station, :dealer, :technician, :user, :subuser]

    field :value,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: [:system, :station, :dealer, :technician, :user, :subuser]

    field :data,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: [:system, :station, :dealer, :technician, :user, :subuser]

    field :inherited,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: [:system, :station, :dealer, :technician, :user, :subuser]
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
alula-ruby-1.9.15 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.14 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.13 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.12 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.11 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.10 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.9 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.8 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.7 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.6 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.5 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.4 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.3 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.2 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.1 lib/alula/resources/user_preferences.rb
alula-ruby-1.9.0 lib/alula/resources/user_preferences.rb
alula-ruby-1.8.1 lib/alula/resources/user_preferences.rb
alula-ruby-1.8.0 lib/alula/resources/user_preferences.rb
alula-ruby-1.7.0 lib/alula/resources/user_preferences.rb
alula-ruby-1.6.0 lib/alula/resources/user_preferences.rb