Class: Alula::Dcp::Config::Synchronize

Inherits:
SingletonDcpCommandResource show all
Extended by:
ResourceAttributes
Defined in:
lib/alula/resources/dcp/config/synchronize.rb

Overview

Synchronize DCP configuration

Constant Summary

Constants inherited from SingletonDcpCommandResource

SingletonDcpCommandResource::BASE_PATH

Instance Attribute Summary

Attributes inherited from SingletonDcpCommandResource

#device_id, #values

Class Method Summary collapse

Methods included from ResourceAttributes

date_fields, extended, field, field_names, filterable_fields, get_fields, get_http_methods, get_resource_path, get_type, http_methods, param_key, resource_path, sortable_fields, type

Methods inherited from SingletonDcpCommandResource

#apply_attributes, #call, #construct_new_resource, #initialize, #model_name, payload_to_camelcase, request

Constructor Details

This class inherits a constructor from Alula::SingletonDcpCommandResource

Class Method Details

.call(device_id:, payload:) ⇒ Object



39
40
41
42
43
44
45
# File 'lib/alula/resources/dcp/config/synchronize.rb', line 39

def self.call(device_id:, payload:)
  request(
    device_id: device_id,
    http_method: :post,
    payload: payload
  )
end

.payload_required?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/alula/resources/dcp/config/synchronize.rb', line 47

def self.payload_required?
  true
end