Sha256: a65185d044e93db4241d7ba930d7c540e37c6cc84a7a131e4de9a2bc767dafc1

Contents?: true

Size: 1.49 KB

Versions: 10

Compression:

Stored size: 1.49 KB

Contents

module Alula
  class ReceiverDisabled < Alula::RestResource
    extend Alula::ResourceAttributes
    extend Alula::ApiOperations::List
    extend Alula::ApiOperations::Request
    extend Alula::ApiOperations::Save
    extend Alula::ApiOperations::Delete

    # 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 'receivers/disabled'
    type 'receivers-disabled'

    # Relationships
    # None

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

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

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

    field :enable,
          type: :boolean,
          sortable: true,
          filterable: true,
          creatable_by: [:system],
          patchable_by: [:system]

    field :date_created,
          type: :date,
          sortable: false,
          filterable: false,
          creatable_by: [],
          patchable_by: []

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alula-ruby-0.69.6 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.69.5 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.69.4 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.69.3 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.69.2 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.69.1 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.69.0 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.68.0 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.67.0 lib/alula/resources/receiver_disabled.rb
alula-ruby-0.66.0 lib/alula/resources/receiver_disabled.rb