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.



1097
1098
1099
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1097

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



1090
1091
1092
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1090

def impacts
  @impacts
end

#reporting_contextString

The impacted reporting context. Corresponds to the JSON property reportingContext

Returns:

  • (String)


1095
1096
1097
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1095

def reporting_context
  @reporting_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1102
1103
1104
1105
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1102

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