Class: Google::Apis::ContentV2_1::PromotionPromotionStatusPromotionIssue

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 issue associated with the promotion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PromotionPromotionStatusPromotionIssue

Returns a new instance of PromotionPromotionStatusPromotionIssue.



11318
11319
11320
# File 'lib/google/apis/content_v2_1/classes.rb', line 11318

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

Instance Attribute Details

#codeString

Code of the issue. Corresponds to the JSON property code

Returns:

  • (String)


11311
11312
11313
# File 'lib/google/apis/content_v2_1/classes.rb', line 11311

def code
  @code
end

#detailString

Explanation of the issue. Corresponds to the JSON property detail

Returns:

  • (String)


11316
11317
11318
# File 'lib/google/apis/content_v2_1/classes.rb', line 11316

def detail
  @detail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11323
11324
11325
11326
# File 'lib/google/apis/content_v2_1/classes.rb', line 11323

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