Class: TencentCloud::Zj::V20190121::PaasStrategy

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

Overview

短信发送人群包策略

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(crowdid = nil, items = nil) ⇒ PaasStrategy

Returns a new instance of PaasStrategy.



1426
1427
1428
1429
# File 'lib/v20190121/models.rb', line 1426

def initialize(crowdid=nil, items=nil)
  @CrowdID = crowdid
  @Items = items
end

Instance Attribute Details

#CrowdIDObject

Parameters:

  • CrowdID:

    人群包id

  • Items:

    待选素材数组



1424
1425
1426
# File 'lib/v20190121/models.rb', line 1424

def CrowdID
  @CrowdID
end

#ItemsObject

Parameters:

  • CrowdID:

    人群包id

  • Items:

    待选素材数组



1424
1425
1426
# File 'lib/v20190121/models.rb', line 1424

def Items
  @Items
end

Instance Method Details

#deserialize(params) ⇒ Object



1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
# File 'lib/v20190121/models.rb', line 1431

def deserialize(params)
  @CrowdID = params['CrowdID']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      paasstrategyitem_tmp = PaasStrategyItem.new
      paasstrategyitem_tmp.deserialize(i)
      @Items << paasstrategyitem_tmp
    end
  end
end