Class: UU::OS::Sheet::SheetCheckIn
- Inherits:
-
REST::DTO
- Object
- REST::DTO
- UU::OS::Sheet::SheetCheckIn
- Defined in:
- uu_os-0.29.16/lib/uu/os/sheet/sheet_check_in.rb
Instance Attribute Summary (collapse)
-
- (Object) code
The new code of the sheet.
-
- (Object) content
The content of the sheet.
-
- (Object) description
The new description of the sheet.
-
- (Object) name
The new name of the sheet.
-
- (Object) version_label
The version label of the new sheet version.
-
- (Object) version_strategy
Specifies how to work with versions.
Instance Method Summary (collapse)
Methods inherited from REST::DTO
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
The new code of the sheet. When null is set, the code is not modified. The code must be unique in a given artifact, otherwise the checkIn commandfails.
16 17 18 |
# File 'uu_os-0.29.16/lib/uu/os/sheet/sheet_check_in.rb', line 16 def code @code end |
- (Object) content
The content of the sheet.
22 23 24 |
# File 'uu_os-0.29.16/lib/uu/os/sheet/sheet_check_in.rb', line 22 def content @content end |
- (Object) description
The new description of the sheet. When null is set, the description is not modified.
19 20 21 |
# File 'uu_os-0.29.16/lib/uu/os/sheet/sheet_check_in.rb', line 19 def description @description end |
- (Object) name
The new name of the sheet. When null is set, the name is not modified. The name must be unique in a given artifact, otherwise the create commandfails.
12 13 14 |
# File 'uu_os-0.29.16/lib/uu/os/sheet/sheet_check_in.rb', line 12 def name @name end |
- (Object) version_label
The version label of the new sheet version. When null is set, it is left empty.
25 26 27 |
# File 'uu_os-0.29.16/lib/uu/os/sheet/sheet_check_in.rb', line 25 def version_label @version_label end |
- (Object) version_strategy
Specifies how to work with versions. When null is set, the CREATE_NEW_VERSION strategy is used, therefore the new version is created and data arepublished (the sheet is unlocked).
30 31 32 |
# File 'uu_os-0.29.16/lib/uu/os/sheet/sheet_check_in.rb', line 30 def version_strategy @version_strategy end |
Instance Method Details
- (Object) to_hash
80 81 82 83 84 85 86 |
# File 'uu_os-0.29.16/lib/uu/os/sheet/sheet_check_in.rb', line 80 def to_hash hash = super() if hash[:versionStrategy].nil? hash[:versionStrategy] = UU::OS::Env::VersionStrategy::OVERWRITE_VERSION end hash end |