Class: LockstepSdk::SyncSubmitModel

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/models/sync_submit_model.rb

Overview

Model representing information for a sync request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ SyncSubmitModel

Initialize the SyncSubmitModel using the provided prototype



26
27
28
# File 'lib/lockstep_sdk/models/sync_submit_model.rb', line 26

def initialize(params = {})
    @app_enrollment_id = params.dig(:app_enrollment_id)
end

Instance Attribute Details

#app_enrollment_idUuid

Returns The identifier of the app enrollment.

Returns:

  • (Uuid)

    The identifier of the app enrollment



31
32
33
# File 'lib/lockstep_sdk/models/sync_submit_model.rb', line 31

def app_enrollment_id
  @app_enrollment_id
end

Instance Method Details

#as_json(options = {}) ⇒ object

Returns This object as a JSON key-value structure.

Returns:

  • (object)

    This object as a JSON key-value structure



34
35
36
37
38
# File 'lib/lockstep_sdk/models/sync_submit_model.rb', line 34

def as_json(options={})
    {
        'appEnrollmentId' => @app_enrollment_id,
    }
end

#to_json(*options) ⇒ String

Returns This object converted to a JSON string.

Returns:

  • (String)

    This object converted to a JSON string



41
42
43
# File 'lib/lockstep_sdk/models/sync_submit_model.rb', line 41

def to_json(*options)
    "[#{as_json(*options).to_json(*options)}]"
end