Class: LockstepSdk::ActivityXRefModel

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ActivityXRefModel

Initialize the ActivityXRefModel using the provided prototype



25
26
27
28
29
30
31
# File 'lib/lockstep_sdk/models/activity_xref_model.rb', line 25

def initialize(params = {})
    @activity_xref_id = params.dig(:activity_xref_id)
    @activity_id = params.dig(:activity_id)
    @group_key = params.dig(:group_key)
    @table_key = params.dig(:table_key)
    @object_key = params.dig(:object_key)
end

Instance Attribute Details

#activity_idUuid

Returns The ID of the activity to which this reference belongs.

Returns:

  • (Uuid)

    The ID of the activity to which this reference belongs.



36
37
38
# File 'lib/lockstep_sdk/models/activity_xref_model.rb', line 36

def activity_id
  @activity_id
end

#activity_xref_idUuid

Returns The unique ID of this record, automatically assigned by Lockstep when this is added to the Lockstep platform.

Returns:

  • (Uuid)

    The unique ID of this record, automatically assigned by Lockstep when this is added to the Lockstep platform.



34
35
36
# File 'lib/lockstep_sdk/models/activity_xref_model.rb', line 34

def activity_xref_id
  @activity_xref_id
end

#group_keyUuid

Returns The GroupKey uniquely identifies a single Lockstep Platform account. All records for this account will share the same GroupKey value. GroupKey values cannot be changed once created. For more information, see [Accounts and GroupKeys](developer.lockstep.io/docs/accounts-and-groupkeys).

Returns:

  • (Uuid)

    The GroupKey uniquely identifies a single Lockstep Platform account. All records for this account will share the same GroupKey value. GroupKey values cannot be changed once created. For more information, see [Accounts and GroupKeys](developer.lockstep.io/docs/accounts-and-groupkeys).



38
39
40
# File 'lib/lockstep_sdk/models/activity_xref_model.rb', line 38

def group_key
  @group_key
end

#object_keyString

Returns The ID of the object the activity reference is associated with.

Returns:

  • (String)

    The ID of the object the activity reference is associated with



42
43
44
# File 'lib/lockstep_sdk/models/activity_xref_model.rb', line 42

def object_key
  @object_key
end

#table_keyString

Returns The name of the table the activity reference is associated with.

Returns:

  • (String)

    The name of the table the activity reference is associated with



40
41
42
# File 'lib/lockstep_sdk/models/activity_xref_model.rb', line 40

def table_key
  @table_key
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



45
46
47
48
49
50
51
52
53
# File 'lib/lockstep_sdk/models/activity_xref_model.rb', line 45

def as_json(options={})
    {
        'activityXRefId' => @activity_xref_id,
        'activityId' => @activity_id,
        'groupKey' => @group_key,
        'tableKey' => @table_key,
        'objectKey' => @object_key,
    }
end

#to_json(*options) ⇒ String

Returns This object converted to a JSON string.

Returns:

  • (String)

    This object converted to a JSON string



56
57
58
# File 'lib/lockstep_sdk/models/activity_xref_model.rb', line 56

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