class AsposeTasksCloud::TaskLink

Attributes

index[RW]
lag[RW]
lag_format[RW]
predecessor_uid[RW]
successor_uid[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# 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
new(attributes = {}) click to toggle source
# 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
swagger_types() click to toggle source

attribute type

# 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