Class: UU::OS::Attachment::AttachmentAttributes

Inherits:
REST::DTO
  • Object
show all
Defined in:
uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from REST::DTO

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from UU::OS::REST::DTO

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UU::OS::REST::DTO

Instance Attribute Details

- (Object) code

Code of the attachment.



16
17
18
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 16

def code
  @code
end

- (Object) creation_stamp

Creation stamp of the attachment.



52
53
54
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 52

def creation_stamp
  @creation_stamp
end

- (Object) creation_time

Creation time of the attachment.



46
47
48
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 46

def creation_time
  @creation_time
end

- (Object) description

Description of the attachment.



22
23
24
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 22

def description
  @description
end

- (Object) entity_type_uri

UESURI of the entity type of the attachment.



37
38
39
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 37

def entity_type_uri
  @entity_type_uri
end

- (Object) file_name

Name of the file contained in the attachment



58
59
60
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 58

def file_name
  @file_name
end

- (Object) lock_access_role_uri

Who (which access role) has locked the attachment. Nil if it is unlocked.



34
35
36
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 34

def lock_access_role_uri
  @lock_access_role_uri
end

- (Object) lock_role_uri

What role has locked the attachment. Nil if it is unlocked.



31
32
33
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 31

def lock_role_uri
  @lock_role_uri
end

- (Object) lock_time

When the attachment has been locked. Nil if it is unlocked.



28
29
30
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 28

def lock_time
  @lock_time
end

- (Object) locked

Specifies if the attachment is locked.



25
26
27
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 25

def locked
  @locked
end

- (Object) modification_stamp

Modification stamp of the attachment.



55
56
57
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 55

def modification_stamp
  @modification_stamp
end

- (Object) modification_time

Modification time of the attachment.



49
50
51
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 49

def modification_time
  @modification_time
end

- (Object) name

Name of the attachment.



19
20
21
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 19

def name
  @name
end

- (Object) uri

Normalized UESURI of the attachment.



13
14
15
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 13

def uri
  @uri
end

- (Object) version

Version of attachment (It is increased with every modification of attachment).



40
41
42
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 40

def version
  @version
end

- (Object) version_label

Version label of the attachment.



43
44
45
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 43

def version_label
  @version_label
end

Instance Method Details

- (Object) revision

Deprecated.

Use #version instead.



201
202
203
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 201

def revision 
  attributes[:version]
end

- (Object) revision=(val)

Deprecated.

Use #version instead.



206
207
208
# File 'uu_os-0.29.16/lib/uu/os/attachment/attachment_attributes.rb', line 206

def revision=(val) 
  attributes[:version] = val
end