Class: TencentCloud::Hunyuan::V20230901::UserLocation

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

Overview

用户位置详细信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, approximate = nil) ⇒ UserLocation

Returns a new instance of UserLocation.



3120
3121
3122
3123
# File 'lib/v20230901/models.rb', line 3120

def initialize(type=nil, approximate=nil)
  @Type = type
  @Approximate = approximate
end

Instance Attribute Details

#ApproximateObject

Parameters:

  • Type:

    表示位置类型

  • Approximate:

    用户近似位置的详细信息



3118
3119
3120
# File 'lib/v20230901/models.rb', line 3118

def Approximate
  @Approximate
end

#TypeObject

Parameters:

  • Type:

    表示位置类型

  • Approximate:

    用户近似位置的详细信息



3118
3119
3120
# File 'lib/v20230901/models.rb', line 3118

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



3125
3126
3127
3128
3129
3130
3131
# File 'lib/v20230901/models.rb', line 3125

def deserialize(params)
  @Type = params['Type']
  unless params['Approximate'].nil?
    @Approximate = Approximate.new
    @Approximate.deserialize(params['Approximate'])
  end
end