Class: TencentCloud::Mrs::V20200910::EyeChildItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::EyeChildItem
- Defined in:
- lib/v20200910/models.rb
Overview
眼科子结构
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sph = nil, cyl = nil, ax = nil, se = nil) ⇒ EyeChildItem
constructor
A new instance of EyeChildItem.
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
#Ax ⇒ Object
3361 3362 3363 |
# File 'lib/v20200910/models.rb', line 3361 def Ax @Ax end |
#Cyl ⇒ Object
3361 3362 3363 |
# File 'lib/v20200910/models.rb', line 3361 def Cyl @Cyl end |
#Se ⇒ Object
3361 3362 3363 |
# File 'lib/v20200910/models.rb', line 3361 def Se @Se end |
#Sph ⇒ Object
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 |