class AsposeTasksCloud::Calendar

Attributes

base_calendar[RW]
days[RW]
exceptions[RW]
is_base_calendar[RW]
is_baseline_calendar[RW]
name[RW]
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/calendar.rb, line 6
def self.attribute_map
  {
    
    #
    :'name' => :'Name',
    
    #
    :'uid' => :'Uid',
    
    #
    :'days' => :'Days',
    
    #
    :'exceptions' => :'Exceptions',
    
    #
    :'is_base_calendar' => :'IsBaseCalendar',
    
    #
    :'base_calendar' => :'BaseCalendar',
    
    #
    :'is_baseline_calendar' => :'IsBaselineCalendar'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/aspose_tasks_cloud/models/calendar.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[:'Name']
    self.name = attributes[:'Name']
  end
  
  if attributes[:'Uid']
    self.uid = attributes[:'Uid']
  end
  
  if attributes[:'Days']
    if (value = attributes[:'Days']).is_a?(Array)
      self.days = value
    end
  end
  
  if attributes[:'Exceptions']
    if (value = attributes[:'Exceptions']).is_a?(Array)
      self.exceptions = value
    end
  end
  
  if attributes[:'IsBaseCalendar']
    self.is_base_calendar = attributes[:'IsBaseCalendar']
  end
  
  if attributes[:'BaseCalendar']
    self.base_calendar = attributes[:'BaseCalendar']
  end
  
  if attributes[:'IsBaselineCalendar']
    self.is_baseline_calendar = attributes[:'IsBaselineCalendar']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/aspose_tasks_cloud/models/calendar.rb, line 34
def self.swagger_types
  {
    :'name' => :'String',
    :'uid' => :'Integer',
    :'days' => :'Array<WeekDay>',
    :'exceptions' => :'Array<CalendarException>',
    :'is_base_calendar' => :'BOOLEAN',
    :'base_calendar' => :'Calendar',
    :'is_baseline_calendar' => :'BOOLEAN'
    
  }
end