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

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

#AmountObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • TimeUnit:

    时间单位

  • TimeNorm:

    时间归一化

  • Amount:

    吸烟量

  • QuitState:

    戒烟状态

  • State:

    是否吸烟

  • Value:

    对外输出值



9365
9366
9367
# File 'lib/v20200910/models.rb', line 9365

def Amount
  @Amount
end

#NameObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • TimeUnit:

    时间单位

  • TimeNorm:

    时间归一化

  • Amount:

    吸烟量

  • QuitState:

    戒烟状态

  • State:

    是否吸烟

  • Value:

    对外输出值



9365
9366
9367
# File 'lib/v20200910/models.rb', line 9365

def Name
  @Name
end

#QuitStateObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • TimeUnit:

    时间单位

  • TimeNorm:

    时间归一化

  • Amount:

    吸烟量

  • QuitState:

    戒烟状态

  • State:

    是否吸烟

  • Value:

    对外输出值



9365
9366
9367
# File 'lib/v20200910/models.rb', line 9365

def QuitState
  @QuitState
end

#SrcObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • TimeUnit:

    时间单位

  • TimeNorm:

    时间归一化

  • Amount:

    吸烟量

  • QuitState:

    戒烟状态

  • State:

    是否吸烟

  • Value:

    对外输出值



9365
9366
9367
# File 'lib/v20200910/models.rb', line 9365

def Src
  @Src
end

#StateObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • TimeUnit:

    时间单位

  • TimeNorm:

    时间归一化

  • Amount:

    吸烟量

  • QuitState:

    戒烟状态

  • State:

    是否吸烟

  • Value:

    对外输出值



9365
9366
9367
# File 'lib/v20200910/models.rb', line 9365

def State
  @State
end

#TimeNormObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • TimeUnit:

    时间单位

  • TimeNorm:

    时间归一化

  • Amount:

    吸烟量

  • QuitState:

    戒烟状态

  • State:

    是否吸烟

  • Value:

    对外输出值



9365
9366
9367
# File 'lib/v20200910/models.rb', line 9365

def TimeNorm
  @TimeNorm
end

#TimeUnitObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • TimeUnit:

    时间单位

  • TimeNorm:

    时间归一化

  • Amount:

    吸烟量

  • QuitState:

    戒烟状态

  • State:

    是否吸烟

  • Value:

    对外输出值



9365
9366
9367
# File 'lib/v20200910/models.rb', line 9365

def TimeUnit
  @TimeUnit
end

#ValueObject

Parameters:

  • Name:

    名称

  • Src:

    原文

  • TimeUnit:

    时间单位

  • TimeNorm:

    时间归一化

  • Amount:

    吸烟量

  • QuitState:

    戒烟状态

  • State:

    是否吸烟

  • Value:

    对外输出值



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