Sha256: 315e9488feefcf0e94b79563ed30b18b77b7c0ac3c1f2ff7c2804e1afed7e8ec

Contents?: true

Size: 1.6 KB

Versions: 3

Compression:

Stored size: 1.6 KB

Contents

module AsposeTasksCloud
  # 
  class WeekDay < BaseObject
    attr_accessor :day_type, :day_working, :from_date, :to_date, :working_times
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'day_type' => :'DayType',
        
        # 
        :'day_working' => :'DayWorking',
        
        # 
        :'from_date' => :'FromDate',
        
        # 
        :'to_date' => :'ToDate',
        
        # 
        :'working_times' => :'WorkingTimes'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'day_type' => :'String',
        :'day_working' => :'BOOLEAN',
        :'from_date' => :'String',
        :'to_date' => :'String',
        :'working_times' => :'Array<WorkingTime>'
        
      }
    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[:'DayType']
        self.day_type = attributes[:'DayType']
      end
      
      if attributes[:'DayWorking']
        self.day_working = attributes[:'DayWorking']
      end
      
      if attributes[:'FromDate']
        self.from_date = attributes[:'FromDate']
      end
      
      if attributes[:'ToDate']
        self.to_date = attributes[:'ToDate']
      end
      
      if attributes[:'WorkingTimes']
        if (value = attributes[:'WorkingTimes']).is_a?(Array)
          self.working_times = value
        end
      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/week_day.rb
aspose_tasks_cloud-1.0.1 lib/aspose_tasks_cloud/models/week_day.rb
aspose_tasks_cloud-1.0.0 lib/aspose_tasks_cloud/models/week_day.rb