Sha256: cec68fb2de1cdee9dcf8a31281790501421cfc8b6e650df412d0a01d81c25f44

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

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

    # attribute type
    def self.swagger_types
      {
        :'link' => :'Link',
        :'uid' => :'Integer',
        :'id' => :'Integer',
        :'name' => :'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
      
    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/resource_item.rb
aspose_tasks_cloud-1.0.1 lib/aspose_tasks_cloud/models/resource_item.rb
aspose_tasks_cloud-1.0.0 lib/aspose_tasks_cloud/models/resource_item.rb