Class: TencentCloud::Mrs::V20200910::SmokeHistoryBlock
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::SmokeHistoryBlock
- Defined in:
- lib/v20200910/models.rb
Overview
吸烟史
Instance Attribute Summary collapse
- #Amount ⇒ Object
- #Name ⇒ Object
- #QuitState ⇒ Object
- #Src ⇒ Object
- #State ⇒ Object
- #TimeNorm ⇒ Object
- #TimeUnit ⇒ Object
- #Value ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, src = nil, timeunit = nil, timenorm = nil, amount = nil, quitstate = nil, state = nil, value = nil) ⇒ SmokeHistoryBlock
constructor
A new instance of SmokeHistoryBlock.
Constructor Details
#initialize(name = nil, src = nil, timeunit = nil, timenorm = nil, amount = nil, quitstate = nil, state = nil, value = nil) ⇒ SmokeHistoryBlock
Returns a new instance of SmokeHistoryBlock.
9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 |
# File 'lib/v20200910/models.rb', line 9367 def initialize(name=nil, src=nil, timeunit=nil, timenorm=nil, amount=nil, quitstate=nil, state=nil, value=nil) @Name = name @Src = src @TimeUnit = timeunit @TimeNorm = timenorm @Amount = amount @QuitState = quitstate @State = state @Value = value end |
Instance Attribute Details
#Amount ⇒ Object
9365 9366 9367 |
# File 'lib/v20200910/models.rb', line 9365 def Amount @Amount end |
#Name ⇒ Object
9365 9366 9367 |
# File 'lib/v20200910/models.rb', line 9365 def Name @Name end |
#QuitState ⇒ Object
9365 9366 9367 |
# File 'lib/v20200910/models.rb', line 9365 def QuitState @QuitState end |
#Src ⇒ Object
9365 9366 9367 |
# File 'lib/v20200910/models.rb', line 9365 def Src @Src end |
#State ⇒ Object
9365 9366 9367 |
# File 'lib/v20200910/models.rb', line 9365 def State @State end |
#TimeNorm ⇒ Object
9365 9366 9367 |
# File 'lib/v20200910/models.rb', line 9365 def TimeNorm @TimeNorm end |
#TimeUnit ⇒ Object
9365 9366 9367 |
# File 'lib/v20200910/models.rb', line 9365 def TimeUnit @TimeUnit end |
#Value ⇒ Object
9365 9366 9367 |
# File 'lib/v20200910/models.rb', line 9365 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 |
# File 'lib/v20200910/models.rb', line 9378 def deserialize(params) @Name = params['Name'] @Src = params['Src'] @TimeUnit = params['TimeUnit'] @TimeNorm = params['TimeNorm'] @Amount = params['Amount'] @QuitState = params['QuitState'] @State = params['State'] @Value = params['Value'] end |