Class: TencentCloud::Iotvideoindustry::V20201201::AbnormalEvents
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotvideoindustry::V20201201::AbnormalEvents
- Defined in:
- lib/v20201201/models.rb
Overview
异动事件走势列表
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(date = nil, info = nil) ⇒ AbnormalEvents
constructor
A new instance of AbnormalEvents.
Constructor Details
#initialize(date = nil, info = nil) ⇒ AbnormalEvents
Returns a new instance of AbnormalEvents.
29 30 31 32 |
# File 'lib/v20201201/models.rb', line 29 def initialize(date=nil, info=nil) @Date = date @Info = info end |
Instance Attribute Details
#Date ⇒ Object
27 28 29 |
# File 'lib/v20201201/models.rb', line 27 def Date @Date end |
#Info ⇒ Object
27 28 29 |
# File 'lib/v20201201/models.rb', line 27 def Info @Info end |
Instance Method Details
#deserialize(params) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/v20201201/models.rb', line 34 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 |