Sha256: 401bc30ec71d70c816ac70b713478949959919eae4c8fe5a13a1164a7f1d9677

Contents?: true

Size: 1.72 KB

Versions: 3

Compression:

Stored size: 1.72 KB

Contents

module AsposeTasksCloud
  # 
  class TaskItem < BaseObject
    attr_accessor :link, :uid, :id, :name, :start, :finish, :duration
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'link' => :'Link',
        
        # 
        :'uid' => :'Uid',
        
        # 
        :'id' => :'Id',
        
        # 
        :'name' => :'Name',
        
        # 
        :'start' => :'Start',
        
        # 
        :'finish' => :'Finish',
        
        # 
        :'duration' => :'Duration'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'link' => :'Link',
        :'uid' => :'Integer',
        :'id' => :'Integer',
        :'name' => :'String',
        :'start' => :'String',
        :'finish' => :'String',
        :'duration' => :'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[:'Uid']
        self.uid = attributes[:'Uid']
      end
      
      if attributes[:'Id']
        self.id = attributes[:'Id']
      end
      
      if attributes[:'Name']
        self.name = attributes[:'Name']
      end
      
      if attributes[:'Start']
        self.start = attributes[:'Start']
      end
      
      if attributes[:'Finish']
        self.finish = attributes[:'Finish']
      end
      
      if attributes[:'Duration']
        self.duration = attributes[:'Duration']
      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_item.rb
aspose_tasks_cloud-1.0.1 lib/aspose_tasks_cloud/models/task_item.rb
aspose_tasks_cloud-1.0.0 lib/aspose_tasks_cloud/models/task_item.rb