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.



435
436
437
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 435

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)


428
429
430
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 428

def reporting_context
  @reporting_context
end

#statusString

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

Returns:

  • (String)


433
434
435
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 433

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



440
441
442
443
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 440

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