Class: UU::OS::Friend::FriendAttributes

Inherits:
REST::DTO
  • Object
show all
Defined in:
uu_os_client-0.10.6/lib/uu/os/friend/friend_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) artifact_type

Artifact type. Always returns ORGANIZATIONAL.



42
43
44
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 42

def artifact_type
  @artifact_type
end

- (Object) code

Code of the friend. Never nil.



21
22
23
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 21

def code
  @code
end

- (Object) competent_role_uri

URI of the competent role. Never nil.



39
40
41
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 39

def competent_role_uri
  @competent_role_uri
end

- (Object) creation_stamp

Creation stamp of the friend.



48
49
50
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 48

def creation_stamp
  @creation_stamp
end

- (Object) creation_time

Creation time of the friend.



51
52
53
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 51

def creation_time
  @creation_time
end

- (Object) description

Description of the friend. Never nil.



24
25
26
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 24

def description
  @description
end

- (Object) first_name

First name of the friend. Never nil.



15
16
17
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 15

def first_name
  @first_name
end

- (Object) icon_uri

URI of the friend's icon. When null is set, the friend uses icon from meta artifact.

Examples:

Allowed format URI of icon:

ues:#{system}:#{ues_v5.core_v1.codetable_v1.base_v1.CodeTable_Icons}:#{CODE_OF_ICON}

For example:

ues:#{system}:#{ues_v5.core_v1.codetable_v1.base_v1.CodeTable_Icons}:#{ART_077}


69
70
71
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 69

def icon_uri
  @icon_uri
end

- (Object) location_uri

URI of the friend's container. Never nil.



27
28
29
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 27

def location_uri
  @location_uri
end

- (Object) meta_artifact_uri

URI of the meta artifact. Never nil.



33
34
35
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 33

def meta_artifact_uri
  @meta_artifact_uri
end

- (Object) modification_stamp

Modification stamp of the friend.



54
55
56
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 54

def modification_stamp
  @modification_stamp
end

- (Object) modification_time

Modification time of the friend.



57
58
59
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 57

def modification_time
  @modification_time
end

- (Object) organizational_unit_uri

URI of the organizational unit in which the friend role lies. Never nil.



30
31
32
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 30

def organizational_unit_uri
  @organizational_unit_uri
end

- (Object) security_level

Security level of the friend. Never nil.



45
46
47
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 45

def security_level
  @security_level
end

- (Object) surname

Surname of the friend. Never nil.



18
19
20
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 18

def surname
  @surname
end

- (Object) universe_id

Universe identifier of the personal role (user). Never nil.



36
37
38
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 36

def universe_id
  @universe_id
end

- (Object) uri

Normalized UESURI of the friend. Never nil.



12
13
14
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 12

def uri
  @uri
end

- (Object) version

Version of the friend.



60
61
62
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 60

def version
  @version
end

Instance Method Details

- (Object) revision

Deprecated.

Use #version instead.



222
223
224
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 222

def revision 
  attributes[:version]
end

- (Object) revision=(val)

Deprecated.

Use #version= instead.



227
228
229
# File 'uu_os_client-0.10.6/lib/uu/os/friend/friend_attributes.rb', line 227

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