Sha256: d1d8ef975134f4173208ede65448982fbee9a97c1442b1f4b3891314ff095739

Contents?: true

Size: 1.47 KB

Versions: 74

Compression:

Stored size: 1.47 KB

Contents

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

    resource_path 'devices/programs'
    type 'devices-program'

    # Relationships
    relationship :device, type: 'devices', cardinality: 'To-one'
    relationship :dealer_billing_program, type: 'dealers-programs', cardinality: 'To-one'

    # 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 :device_id,
          type: :string,
          sortable: false,
          filterable: true,
          creatable_by: [:system],
          patchable_by: []
    
    field :dealer_program_id,
          type: :string,
          sortable: false,
          filterable: true,
          creatable_by: [:system],
          patchable_by: []
    
    field :date_modified,
          type: :date,
          sortable: true,
          filterable: true,
          creatable_by: [],
          patchable_by: []
    
    field :date_created,
          type: :date,
          sortable: true,
          filterable: true,
          creatable_by: [:system],
          patchable_by: []
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
alula-ruby-2.1.2 lib/alula/resources/device_program.rb
alula-ruby-2.1.1 lib/alula/resources/device_program.rb
alula-ruby-2.1.0 lib/alula/resources/device_program.rb
alula-ruby-2.0.0 lib/alula/resources/device_program.rb
alula-ruby-1.10.5 lib/alula/resources/device_program.rb
alula-ruby-1.10.4 lib/alula/resources/device_program.rb
alula-ruby-1.10.3 lib/alula/resources/device_program.rb
alula-ruby-1.10.2 lib/alula/resources/device_program.rb
alula-ruby-1.10.1 lib/alula/resources/device_program.rb
alula-ruby-1.10.0 lib/alula/resources/device_program.rb
alula-ruby-1.9.17 lib/alula/resources/device_program.rb
alula-ruby-1.9.16 lib/alula/resources/device_program.rb
alula-ruby-1.9.15 lib/alula/resources/device_program.rb
alula-ruby-1.9.14 lib/alula/resources/device_program.rb
alula-ruby-1.9.13 lib/alula/resources/device_program.rb
alula-ruby-1.9.12 lib/alula/resources/device_program.rb
alula-ruby-1.9.11 lib/alula/resources/device_program.rb
alula-ruby-1.9.10 lib/alula/resources/device_program.rb
alula-ruby-1.9.9 lib/alula/resources/device_program.rb
alula-ruby-1.9.8 lib/alula/resources/device_program.rb