Class: TencentCloud::Mrs::V20200910::SmokeHistoryBlock

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

Overview

吸烟史

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, src = nil, timeunit = nil, timenorm = nil, amount = nil, quitstate = nil, state = nil, value = nil) ⇒ SmokeHistoryBlock



9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
# File 'lib/v20200910/models.rb', line 9394

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

#AmountObject



9392
9393
9394
# File 'lib/v20200910/models.rb', line 9392

def Amount
  @Amount
end

#NameObject



9392
9393
9394
# File 'lib/v20200910/models.rb', line 9392

def Name
  @Name
end

#QuitStateObject



9392
9393
9394
# File 'lib/v20200910/models.rb', line 9392

def QuitState
  @QuitState
end

#SrcObject



9392
9393
9394
# File 'lib/v20200910/models.rb', line 9392

def Src
  @Src
end

#StateObject



9392
9393
9394
# File 'lib/v20200910/models.rb', line 9392

def State
  @State
end

#TimeNormObject



9392
9393
9394
# File 'lib/v20200910/models.rb', line 9392

def TimeNorm
  @TimeNorm
end

#TimeUnitObject



9392
9393
9394
# File 'lib/v20200910/models.rb', line 9392

def TimeUnit
  @TimeUnit
end

#ValueObject



9392
9393
9394
# File 'lib/v20200910/models.rb', line 9392

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
# File 'lib/v20200910/models.rb', line 9405

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