Class: TencentCloud::Iotvideoindustry::V20201201::AbnormalEvents

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201201/models.rb

Overview

异动事件走势列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date = nil, info = nil) ⇒ AbnormalEvents

Returns a new instance of AbnormalEvents.



31
32
33
34
# File 'lib/v20201201/models.rb', line 31

def initialize(date=nil, info=nil)
  @Date = date
  @Info = info
end

Instance Attribute Details

#DateObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Date:

    对应查询日期

  • Info:

    列表信息



29
30
31
# File 'lib/v20201201/models.rb', line 29

def Date
  @Date
end

#InfoObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Date:

    对应查询日期

  • Info:

    列表信息



29
30
31
# File 'lib/v20201201/models.rb', line 29

def Info
  @Info
end

Instance Method Details

#deserialize(params) ⇒ Object



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/v20201201/models.rb', line 36

def deserialize(params)
  @Date = params['Date']
  unless params['Info'].nil?
    @Info = []
    params['Info'].each do |i|
      abnormaleventsinfo_tmp = AbnormalEventsInfo.new
      abnormaleventsinfo_tmp.deserialize(i)
      @Info << abnormaleventsinfo_tmp
    end
  end
end