Class: TencentCloud::Essbasic::V20201222::Address

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

Overview

此结构体 (Address) 用于描述住址或通讯地址。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(province = nil, city = nil, county = nil, details = nil, country = nil) ⇒ Address

Returns a new instance of Address.



35
36
37
38
39
40
41
# File 'lib/v20201222/models.rb', line 35

def initialize(province=nil, city=nil, county=nil, details=nil, country=nil)
  @Province = province
  @City = city
  @County = county
  @Details = details
  @Country = country
end

Instance Attribute Details

#CityObject

Parameters:

  • Province:

    省份

  • City:

    城市

  • County:

    区县

  • Details:

    详细地址

  • Country:

    国家,默认中国



33
34
35
# File 'lib/v20201222/models.rb', line 33

def City
  @City
end

#CountryObject

Parameters:

  • Province:

    省份

  • City:

    城市

  • County:

    区县

  • Details:

    详细地址

  • Country:

    国家,默认中国



33
34
35
# File 'lib/v20201222/models.rb', line 33

def Country
  @Country
end

#CountyObject

Parameters:

  • Province:

    省份

  • City:

    城市

  • County:

    区县

  • Details:

    详细地址

  • Country:

    国家,默认中国



33
34
35
# File 'lib/v20201222/models.rb', line 33

def County
  @County
end

#DetailsObject

Parameters:

  • Province:

    省份

  • City:

    城市

  • County:

    区县

  • Details:

    详细地址

  • Country:

    国家,默认中国



33
34
35
# File 'lib/v20201222/models.rb', line 33

def Details
  @Details
end

#ProvinceObject

Parameters:

  • Province:

    省份

  • City:

    城市

  • County:

    区县

  • Details:

    详细地址

  • Country:

    国家,默认中国



33
34
35
# File 'lib/v20201222/models.rb', line 33

def Province
  @Province
end

Instance Method Details

#deserialize(params) ⇒ Object



43
44
45
46
47
48
49
# File 'lib/v20201222/models.rb', line 43

def deserialize(params)
  @Province = params['Province']
  @City = params['City']
  @County = params['County']
  @Details = params['Details']
  @Country = params['Country']
end