Class: TencentCloud::Tms::V20200713::User
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tms::V20200713::User
- Defined in:
- lib/v20200713/models.rb
Overview
用户相关信息
Instance Attribute Summary collapse
- #AccountType ⇒ Object
- #Age ⇒ Object
- #Gender ⇒ Object
- #Level ⇒ Object
- #Nickname ⇒ Object
- #Phone ⇒ Object
- #UserId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(userid = nil, nickname = nil, accounttype = nil, gender = nil, age = nil, level = nil, phone = nil) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(userid = nil, nickname = nil, accounttype = nil, gender = nil, age = nil, level = nil, phone = nil) ⇒ User
Returns a new instance of User.
627 628 629 630 631 632 633 634 635 |
# File 'lib/v20200713/models.rb', line 627 def initialize(userid=nil, nickname=nil, accounttype=nil, gender=nil, age=nil, level=nil, phone=nil) @UserId = userid @Nickname = nickname @AccountType = accounttype @Gender = gender @Age = age @Level = level @Phone = phone end |
Instance Attribute Details
#AccountType ⇒ Object
625 626 627 |
# File 'lib/v20200713/models.rb', line 625 def AccountType @AccountType end |
#Age ⇒ Object
625 626 627 |
# File 'lib/v20200713/models.rb', line 625 def Age @Age end |
#Gender ⇒ Object
625 626 627 |
# File 'lib/v20200713/models.rb', line 625 def Gender @Gender end |
#Level ⇒ Object
625 626 627 |
# File 'lib/v20200713/models.rb', line 625 def Level @Level end |
#Nickname ⇒ Object
625 626 627 |
# File 'lib/v20200713/models.rb', line 625 def Nickname @Nickname end |
#Phone ⇒ Object
625 626 627 |
# File 'lib/v20200713/models.rb', line 625 def Phone @Phone end |
#UserId ⇒ Object
625 626 627 |
# File 'lib/v20200713/models.rb', line 625 def UserId @UserId end |
Instance Method Details
#deserialize(params) ⇒ Object
637 638 639 640 641 642 643 644 645 |
# File 'lib/v20200713/models.rb', line 637 def deserialize(params) @UserId = params['UserId'] @Nickname = params['Nickname'] @AccountType = params['AccountType'] @Gender = params['Gender'] @Age = params['Age'] @Level = params['Level'] @Phone = params['Phone'] end |