class AsposeTasksCloud::Link

Attributes

href[RW]
rel[RW]
title[RW]
type[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/link.rb, line 6
def self.attribute_map
  {
    
    #
    :'href' => :'Href',
    
    #
    :'rel' => :'Rel',
    
    #
    :'type' => :'Type',
    
    #
    :'title' => :'Title'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/aspose_tasks_cloud/models/link.rb, line 35
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[:'Href']
    self.href = attributes[:'Href']
  end
  
  if attributes[:'Rel']
    self.rel = attributes[:'Rel']
  end
  
  if attributes[:'Type']
    self.type = attributes[:'Type']
  end
  
  if attributes[:'Title']
    self.title = attributes[:'Title']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/aspose_tasks_cloud/models/link.rb, line 25
def self.swagger_types
  {
    :'href' => :'String',
    :'rel' => :'String',
    :'type' => :'String',
    :'title' => :'String'
    
  }
end