Class: Google::Apis::MerchantapiAccountsV1beta::ImpactedDestination

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

Overview

The impact of the issue on a destination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImpactedDestination

Returns a new instance of ImpactedDestination.



1927
1928
1929
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1927

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

Instance Attribute Details

#impactsArray<Google::Apis::MerchantapiAccountsV1beta::Impact>

The (negative) impact for various regions on the given destination. Corresponds to the JSON property impacts



1920
1921
1922
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1920

def impacts
  @impacts
end

#reporting_contextString

The impacted reporting context. Corresponds to the JSON property reportingContext

Returns:

  • (String)


1925
1926
1927
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1925

def reporting_context
  @reporting_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1932
1933
1934
1935
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1932

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