Sha256: dcc1b8435504f1b459b6c2a5389d877f743b7b882a1551555a777b862fe33b0d

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 KB

Contents

module AsposeTasksCloud
  # 
  class TaskLink < BaseObject
    attr_accessor :link, :index, :predecessor_uid, :successor_uid, :link_type, :lag, :lag_format
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'link' => :'Link',
        
        # 
        :'index' => :'Index',
        
        # 
        :'predecessor_uid' => :'PredecessorUid',
        
        # 
        :'successor_uid' => :'SuccessorUid',
        
        # 
        :'link_type' => :'LinkType',
        
        # 
        :'lag' => :'Lag',
        
        # 
        :'lag_format' => :'LagFormat'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'link' => :'Link',
        :'index' => :'Integer',
        :'predecessor_uid' => :'Integer',
        :'successor_uid' => :'Integer',
        :'link_type' => :'String',
        :'lag' => :'Integer',
        :'lag_format' => :'String'
        
      }
    end

    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

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aspose_tasks_cloud-1.0.2 lib/aspose_tasks_cloud/models/task_link.rb
aspose_tasks_cloud-1.0.1 lib/aspose_tasks_cloud/models/task_link.rb
aspose_tasks_cloud-1.0.0 lib/aspose_tasks_cloud/models/task_link.rb