Sha256: d534b90b237f93fcd96ab8542a0dfb2913e47ecc8381cf39ce9c5a842980fc10

Contents?: true

Size: 1.44 KB

Versions: 83

Compression:

Stored size: 1.44 KB

Contents

module Alula
  class Self < Alula::SingletonRestResource
    extend Alula::ResourceAttributes
    extend Alula::RelationshipAttributes

    # You should update this to be a slash-separated, literal path to the resource
    # without the prefix /api/v1 or the suffix of an ID
    resource_path 'self'
    type 'self'

    # Relationships
    # None

    # 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 :dealer_id,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: []

    field :parent_id,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: []

    field :u_type,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: []

    field :user_type,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: [],
          symbolize: true

    field :impersonator,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: []

  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
alula-ruby-2.6.3 lib/alula/resources/self.rb
alula-ruby-2.6.2 lib/alula/resources/self.rb
alula-ruby-2.6.1 lib/alula/resources/self.rb
alula-ruby-2.6.0 lib/alula/resources/self.rb
alula-ruby-2.5.0 lib/alula/resources/self.rb
alula-ruby-2.4.0 lib/alula/resources/self.rb
alula-ruby-2.3.0 lib/alula/resources/self.rb
alula-ruby-2.2.0 lib/alula/resources/self.rb
alula-ruby-2.1.2 lib/alula/resources/self.rb
alula-ruby-2.1.1 lib/alula/resources/self.rb
alula-ruby-2.1.0 lib/alula/resources/self.rb
alula-ruby-2.0.0 lib/alula/resources/self.rb
alula-ruby-1.10.5 lib/alula/resources/self.rb
alula-ruby-1.10.4 lib/alula/resources/self.rb
alula-ruby-1.10.3 lib/alula/resources/self.rb
alula-ruby-1.10.2 lib/alula/resources/self.rb
alula-ruby-1.10.1 lib/alula/resources/self.rb
alula-ruby-1.10.0 lib/alula/resources/self.rb
alula-ruby-1.9.17 lib/alula/resources/self.rb
alula-ruby-1.9.16 lib/alula/resources/self.rb