Class: AsposeTasksCloud::TaskLink
- Inherits:
-
BaseObject
- Object
- BaseObject
- AsposeTasksCloud::TaskLink
- Defined in:
- lib/aspose_tasks_cloud/models/task_link.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#lag ⇒ Object
Returns the value of attribute lag.
-
#lag_format ⇒ Object
Returns the value of attribute lag_format.
-
#link ⇒ Object
Returns the value of attribute link.
-
#link_type ⇒ Object
Returns the value of attribute link_type.
-
#predecessor_uid ⇒ Object
Returns the value of attribute predecessor_uid.
-
#successor_uid ⇒ Object
Returns the value of attribute successor_uid.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ TaskLink
constructor
A new instance of TaskLink.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ TaskLink
Returns a new instance of TaskLink.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 47 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[:'Link'] self.link = attributes[:'Link'] end if attributes[:'Index'] self.index = attributes[:'Index'] end if attributes[:'PredecessorUid'] self.predecessor_uid = attributes[:'PredecessorUid'] end if attributes[:'SuccessorUid'] self.successor_uid = attributes[:'SuccessorUid'] end if attributes[:'LinkType'] self.link_type = attributes[:'LinkType'] end if attributes[:'Lag'] self.lag = attributes[:'Lag'] end if attributes[:'LagFormat'] self.lag_format = attributes[:'LagFormat'] end end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 4 def index @index end |
#lag ⇒ Object
Returns the value of attribute lag.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 4 def lag @lag end |
#lag_format ⇒ Object
Returns the value of attribute lag_format.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 4 def lag_format @lag_format end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 4 def link @link end |
#link_type ⇒ Object
Returns the value of attribute link_type.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 4 def link_type @link_type end |
#predecessor_uid ⇒ Object
Returns the value of attribute predecessor_uid.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 4 def predecessor_uid @predecessor_uid end |
#successor_uid ⇒ Object
Returns the value of attribute successor_uid.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 4 def successor_uid @successor_uid end |
Class Method Details
.attribute_map ⇒ Object
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 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 6 def self.attribute_map { # :'link' => :'Link', # :'index' => :'Index', # :'predecessor_uid' => :'PredecessorUid', # :'successor_uid' => :'SuccessorUid', # :'link_type' => :'LinkType', # :'lag' => :'Lag', # :'lag_format' => :'LagFormat' } end |
.swagger_types ⇒ Object
attribute type
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/aspose_tasks_cloud/models/task_link.rb', line 34 def self.swagger_types { :'link' => :'Link', :'index' => :'Integer', :'predecessor_uid' => :'Integer', :'successor_uid' => :'Integer', :'link_type' => :'String', :'lag' => :'Integer', :'lag_format' => :'String' } end |