Class: TencentCloud::Tdmq::V20200217::Sort

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

Overview

排序器

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, order = nil) ⇒ Sort

Returns a new instance of Sort.



12950
12951
12952
12953
# File 'lib/v20200217/models.rb', line 12950

def initialize(name=nil, order=nil)
  @Name = name
  @Order = order
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    排序字段

  • Order:

    升序ASC,降序DESC



12948
12949
12950
# File 'lib/v20200217/models.rb', line 12948

def Name
  @Name
end

#OrderObject

Parameters:

  • Name:

    排序字段

  • Order:

    升序ASC,降序DESC



12948
12949
12950
# File 'lib/v20200217/models.rb', line 12948

def Order
  @Order
end

Instance Method Details

#deserialize(params) ⇒ Object



12955
12956
12957
12958
# File 'lib/v20200217/models.rb', line 12955

def deserialize(params)
  @Name = params['Name']
  @Order = params['Order']
end