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

Inherits:
REST::DTO
  • Object
show all
Defined in:
uu_os_client-0.10.6/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_client-0.10.6/lib/uu/os/attachment/attachment_attributes.rb', line 16

def code
  @code
end

- (Object) description

Description of the attachment.



22
23
24
# File 'uu_os_client-0.10.6/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_client-0.10.6/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



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

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_client-0.10.6/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_client-0.10.6/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_client-0.10.6/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_client-0.10.6/lib/uu/os/attachment/attachment_attributes.rb', line 25

def locked
  @locked
end

- (Object) name

Name of the attachment.



19
20
21
# File 'uu_os_client-0.10.6/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_client-0.10.6/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_client-0.10.6/lib/uu/os/attachment/attachment_attributes.rb', line 40

def version
  @version
end

Instance Method Details

- (Object) revision

Deprecated.

Use #version instead.



138
139
140
# File 'uu_os_client-0.10.6/lib/uu/os/attachment/attachment_attributes.rb', line 138

def revision 
  attributes[:version]
end

- (Object) revision=(val)

Deprecated.

Use #version= instead.



143
144
145
# File 'uu_os_client-0.10.6/lib/uu/os/attachment/attachment_attributes.rb', line 143

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