Sha256: 0ddd0382ace8d3a42dbcd8f28982e7c841813e7295532adef602b0ddf4f0f588

Contents?: true

Size: 1.91 KB

Versions: 75

Compression:

Stored size: 1.91 KB

Contents

module Alula
  class ReceiverGroup < Alula::RestResource
    extend Alula::ResourceAttributes
    extend Alula::RelationshipAttributes
    extend Alula::ApiOperations::Request
    extend Alula::ApiOperations::List
    extend Alula::ApiOperations::Save

    resource_path 'receivers/groups'
    type 'receivers-groups'

    # Relationships
    relationship :dealer, type: 'dealers', cardinality: 'To-one'
    relationship :devices, type: 'devices', cardinality: 'To-many'

    # Resource Fields
    field :id,
          type: :string,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: []

    field :dealer_id,
          type: :string,
          sortable: false,
          filterable: true,
          creatable_by: [:system, :station, :dealer],
          patchable_by: []

    field :name,
          type: :string,
          sortable: true,
          filterable: true,
          creatable_by: [:system, :station, :dealer],
          patchable_by: [:system, :station, :dealer, :technician, :user, :sub_user]

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

    field :date_modified,
          type: :date,
          sortable: true,
          filterable: true,
          creatable_by: [],
          patchable_by: []

    field :date_entered,
          type: :date,
          sortable: true,
          filterable: true,
          creatable_by: [],
          patchable_by: []

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

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

  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
alula-ruby-1.1.0 lib/alula/resources/receiver_group.rb
alula-ruby-1.0.2 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.11 lib/alula/resources/receiver_group.rb
alula-ruby-1.0.1 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.10 lib/alula/resources/receiver_group.rb
alula-ruby-1.0.0 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.9 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.8 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.7 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.6 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.5 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.4 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.3 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.2 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.1 lib/alula/resources/receiver_group.rb
alula-ruby-0.69.0 lib/alula/resources/receiver_group.rb
alula-ruby-0.68.0 lib/alula/resources/receiver_group.rb
alula-ruby-0.67.0 lib/alula/resources/receiver_group.rb
alula-ruby-0.66.0 lib/alula/resources/receiver_group.rb
alula-ruby-0.65.0 lib/alula/resources/receiver_group.rb