Class: Google::Apis::ManufacturersV1::Issue

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

Overview

Product issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Issue

Returns a new instance of Issue



77
78
79
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 77

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

Instance Attribute Details

#attributeString

If present, the attribute that triggered the issue. For more information about attributes, see https://support.google.com/manufacturers/answer/6124116. Corresponds to the JSON property attribute

Returns:

  • (String)


69
70
71
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 69

def attribute
  @attribute
end

#descriptionString

Description of the issue. Corresponds to the JSON property description

Returns:

  • (String)


62
63
64
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 62

def description
  @description
end

#severityString

The severity of the issue. Corresponds to the JSON property severity

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 57

def severity
  @severity
end

#typeString

The server-generated type of the issue, for example, “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. Corresponds to the JSON property type

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 75

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



82
83
84
85
86
87
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 82

def update!(**args)
  @severity = args[:severity] if args.key?(:severity)
  @description = args[:description] if args.key?(:description)
  @attribute = args[:attribute] if args.key?(:attribute)
  @type = args[:type] if args.key?(:type)
end