Class: LockstepSdk::AttachmentHeaderInfoModel

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

Overview

Aggregated Attachment status information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ AttachmentHeaderInfoModel

Initialize the AttachmentHeaderInfoModel using the provided prototype



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

def initialize(params = {})
    @group_key = params.dig(:group_key)
    @company_id = params.dig(:company_id)
    @total_attachments = params.dig(:total_attachments)
    @total_archived = params.dig(:total_archived)
    @total_active = params.dig(:total_active)
end

Instance Attribute Details

#company_idUuid



39
40
41
# File 'lib/lockstep_sdk/models/attachment_header_info_model.rb', line 39

def company_id
  @company_id
end

#group_keyUuid



35
36
37
# File 'lib/lockstep_sdk/models/attachment_header_info_model.rb', line 35

def group_key
  @group_key
end

#total_activeInt32



51
52
53
# File 'lib/lockstep_sdk/models/attachment_header_info_model.rb', line 51

def total_active
  @total_active
end

#total_archivedInt32



47
48
49
# File 'lib/lockstep_sdk/models/attachment_header_info_model.rb', line 47

def total_archived
  @total_archived
end

#total_attachmentsInt32



43
44
45
# File 'lib/lockstep_sdk/models/attachment_header_info_model.rb', line 43

def total_attachments
  @total_attachments
end

Instance Method Details

#as_json(options = {}) ⇒ object



55
56
57
58
59
60
61
62
63
# File 'lib/lockstep_sdk/models/attachment_header_info_model.rb', line 55

def as_json(options={})
    {
        'groupKey' => @group_key,
        'companyId' => @company_id,
        'totalAttachments' => @total_attachments,
        'totalArchived' => @total_archived,
        'totalActive' => @total_active,
    }
end

#to_json(*options) ⇒ String



67
68
69
# File 'lib/lockstep_sdk/models/attachment_header_info_model.rb', line 67

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