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

Returns a new instance of EyeChildItem.



3348
3349
3350
3351
3352
3353
# File 'lib/v20200910/models.rb', line 3348

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

Instance Attribute Details

#AxObject

Parameters:

  • Sph:

    球镜

  • Cyl:

    柱镜

  • Ax:

    轴位

  • Se:

    等效球镜



3346
3347
3348
# File 'lib/v20200910/models.rb', line 3346

def Ax
  @Ax
end

#CylObject

Parameters:

  • Sph:

    球镜

  • Cyl:

    柱镜

  • Ax:

    轴位

  • Se:

    等效球镜



3346
3347
3348
# File 'lib/v20200910/models.rb', line 3346

def Cyl
  @Cyl
end

#SeObject

Parameters:

  • Sph:

    球镜

  • Cyl:

    柱镜

  • Ax:

    轴位

  • Se:

    等效球镜



3346
3347
3348
# File 'lib/v20200910/models.rb', line 3346

def Se
  @Se
end

#SphObject

Parameters:

  • Sph:

    球镜

  • Cyl:

    柱镜

  • Ax:

    轴位

  • Se:

    等效球镜



3346
3347
3348
# File 'lib/v20200910/models.rb', line 3346

def Sph
  @Sph
end

Instance Method Details

#deserialize(params) ⇒ Object



3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
# File 'lib/v20200910/models.rb', line 3355

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