Class: Google::Apis::ContentV2_1::PromotionPromotionStatusDestinationStatus

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

The destination status of the promotion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PromotionPromotionStatusDestinationStatus

Returns a new instance of PromotionPromotionStatusDestinationStatus.



11340
11341
11342
# File 'lib/google/apis/content_v2_1/classes.rb', line 11340

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#destinationString

The name of the destination. Corresponds to the JSON property destination

Returns:

  • (String)


11333
11334
11335
# File 'lib/google/apis/content_v2_1/classes.rb', line 11333

def destination
  @destination
end

#statusString

The status for the specified destination. Corresponds to the JSON property status

Returns:

  • (String)


11338
11339
11340
# File 'lib/google/apis/content_v2_1/classes.rb', line 11338

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11345
11346
11347
11348
# File 'lib/google/apis/content_v2_1/classes.rb', line 11345

def update!(**args)
  @destination = args[:destination] if args.key?(:destination)
  @status = args[:status] if args.key?(:status)
end