Class: TencentCloud::Mrs::V20200910::EyeChildItem

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

Overview

眼科子结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sph = nil, cyl = nil, ax = nil, se = nil) ⇒ EyeChildItem



3363
3364
3365
3366
3367
3368
# File 'lib/v20200910/models.rb', line 3363

def initialize(sph=nil, cyl=nil, ax=nil, se=nil)
  @Sph = sph
  @Cyl = cyl
  @Ax = ax
  @Se = se
end

Instance Attribute Details

#AxObject



3361
3362
3363
# File 'lib/v20200910/models.rb', line 3361

def Ax
  @Ax
end

#CylObject



3361
3362
3363
# File 'lib/v20200910/models.rb', line 3361

def Cyl
  @Cyl
end

#SeObject



3361
3362
3363
# File 'lib/v20200910/models.rb', line 3361

def Se
  @Se
end

#SphObject



3361
3362
3363
# File 'lib/v20200910/models.rb', line 3361

def Sph
  @Sph
end

Instance Method Details

#deserialize(params) ⇒ Object



3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
# File 'lib/v20200910/models.rb', line 3370

def deserialize(params)
  unless params['Sph'].nil?
    @Sph = []
    params['Sph'].each do |i|
      baseitem3_tmp = BaseItem3.new
      baseitem3_tmp.deserialize(i)
      @Sph << baseitem3_tmp
    end
  end
  unless params['Cyl'].nil?
    @Cyl = []
    params['Cyl'].each do |i|
      baseitem3_tmp = BaseItem3.new
      baseitem3_tmp.deserialize(i)
      @Cyl << baseitem3_tmp
    end
  end
  unless params['Ax'].nil?
    @Ax = []
    params['Ax'].each do |i|
      baseitem3_tmp = BaseItem3.new
      baseitem3_tmp.deserialize(i)
      @Ax << baseitem3_tmp
    end
  end
  unless params['Se'].nil?
    @Se = BaseItem2.new
    @Se.deserialize(params['Se'])
  end
end