Class: AsposeTasksCloud::OutlineCodeDefinition

Inherits:
BaseObject
  • Object
show all
Defined in:
lib/aspose_tasks_cloud/models/outline_code_definition.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ OutlineCodeDefinition

Returns a new instance of OutlineCodeDefinition.



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 75

def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'Guid']
    self.guid = attributes[:'Guid']
  end
  
  if attributes[:'FieldId']
    self.field_id = attributes[:'FieldId']
  end
  
  if attributes[:'FieldName']
    self.field_name = attributes[:'FieldName']
  end
  
  if attributes[:'Alias']
    self._alias = attributes[:'Alias']
  end
  
  if attributes[:'PhoneticAlias']
    self.phonetic_alias = attributes[:'PhoneticAlias']
  end
  
  if attributes[:'Values']
    if (value = attributes[:'Values']).is_a?(Array)
      self.values = value
    end
  end
  
  if attributes[:'Enterprise']
    self.enterprise = attributes[:'Enterprise']
  end
  
  if attributes[:'EnterpriseOutlineCodeAlias']
    self.enterprise_outline_code_alias = attributes[:'EnterpriseOutlineCodeAlias']
  end
  
  if attributes[:'ResourceSubstitutionEnabled']
    self.resource_substitution_enabled = attributes[:'ResourceSubstitutionEnabled']
  end
  
  if attributes[:'LeafOnly']
    self.leaf_only = attributes[:'LeafOnly']
  end
  
  if attributes[:'AllLevelsRequired']
    self.all_levels_required = attributes[:'AllLevelsRequired']
  end
  
  if attributes[:'OnlyTableValuesAllowed']
    self.only_table_values_allowed = attributes[:'OnlyTableValuesAllowed']
  end
  
  if attributes[:'Masks']
    if (value = attributes[:'Masks']).is_a?(Array)
      self.masks = value
    end
  end
  
  if attributes[:'ShowIndent']
    self.show_indent = attributes[:'ShowIndent']
  end
  
end

Instance Attribute Details

#_aliasObject

Returns the value of attribute _alias.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def _alias
  @_alias
end

#all_levels_requiredObject

Returns the value of attribute all_levels_required.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def all_levels_required
  @all_levels_required
end

#enterpriseObject

Returns the value of attribute enterprise.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def enterprise
  @enterprise
end

#enterprise_outline_code_aliasObject

Returns the value of attribute enterprise_outline_code_alias.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def enterprise_outline_code_alias
  @enterprise_outline_code_alias
end

#field_idObject

Returns the value of attribute field_id.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def field_id
  @field_id
end

#field_nameObject

Returns the value of attribute field_name.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def field_name
  @field_name
end

#guidObject

Returns the value of attribute guid.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def guid
  @guid
end

#leaf_onlyObject

Returns the value of attribute leaf_only.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def leaf_only
  @leaf_only
end

#masksObject

Returns the value of attribute masks.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def masks
  @masks
end

#only_table_values_allowedObject

Returns the value of attribute only_table_values_allowed.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def only_table_values_allowed
  @only_table_values_allowed
end

#phonetic_aliasObject

Returns the value of attribute phonetic_alias.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def phonetic_alias
  @phonetic_alias
end

#resource_substitution_enabledObject

Returns the value of attribute resource_substitution_enabled.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def resource_substitution_enabled
  @resource_substitution_enabled
end

#show_indentObject

Returns the value of attribute show_indent.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def show_indent
  @show_indent
end

#valuesObject

Returns the value of attribute values.



4
5
6
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 4

def values
  @values
end

Class Method Details

.attribute_mapObject

attribute mapping from ruby-style variable name to JSON key



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 6

def self.attribute_map
  {
    
    # 
    :'guid' => :'Guid',
    
    # 
    :'field_id' => :'FieldId',
    
    # 
    :'field_name' => :'FieldName',
    
    # 
    :'_alias' => :'Alias',
    
    # 
    :'phonetic_alias' => :'PhoneticAlias',
    
    # 
    :'values' => :'Values',
    
    # 
    :'enterprise' => :'Enterprise',
    
    # 
    :'enterprise_outline_code_alias' => :'EnterpriseOutlineCodeAlias',
    
    # 
    :'resource_substitution_enabled' => :'ResourceSubstitutionEnabled',
    
    # 
    :'leaf_only' => :'LeafOnly',
    
    # 
    :'all_levels_required' => :'AllLevelsRequired',
    
    # 
    :'only_table_values_allowed' => :'OnlyTableValuesAllowed',
    
    # 
    :'masks' => :'Masks',
    
    # 
    :'show_indent' => :'ShowIndent'
    
  }
end

.swagger_typesObject

attribute type



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/aspose_tasks_cloud/models/outline_code_definition.rb', line 55

def self.swagger_types
  {
    :'guid' => :'String',
    :'field_id' => :'String',
    :'field_name' => :'String',
    :'_alias' => :'String',
    :'phonetic_alias' => :'String',
    :'values' => :'Array<OutlineValue>',
    :'enterprise' => :'BOOLEAN',
    :'enterprise_outline_code_alias' => :'Integer',
    :'resource_substitution_enabled' => :'BOOLEAN',
    :'leaf_only' => :'BOOLEAN',
    :'all_levels_required' => :'BOOLEAN',
    :'only_table_values_allowed' => :'BOOLEAN',
    :'masks' => :'Array<OutlineMask>',
    :'show_indent' => :'BOOLEAN'
    
  }
end