Class: Google::Apis::MerchantapiPromotionsV1beta::DestinationStatus

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

Overview

The status for the specified destination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DestinationStatus

Returns a new instance of DestinationStatus.



357
358
359
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 357

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

Instance Attribute Details

#reporting_contextString

Output only. The name of the promotion destination. Corresponds to the JSON property reportingContext

Returns:

  • (String)


350
351
352
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 350

def reporting_context
  @reporting_context
end

#statusString

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

Returns:

  • (String)


355
356
357
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 355

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



362
363
364
365
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 362

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