Class: Google::Apis::SearchconsoleV1::Image
- Inherits:
-
Object
- Object
- Google::Apis::SearchconsoleV1::Image
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/searchconsole_v1/classes.rb,
generated/google/apis/searchconsole_v1/representations.rb,
generated/google/apis/searchconsole_v1/representations.rb
Overview
Describe image data.
Instance Attribute Summary collapse
-
#data ⇒ String
Image data in format determined by the mime type.
-
#mime_type ⇒ String
The mime-type of the image data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image
167 168 169 |
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ String
Image data in format determined by the mime type. Currently, the format
will always be "image/png", but this might change in the future.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
160 161 162 |
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 160 def data @data end |
#mime_type ⇒ String
The mime-type of the image data.
Corresponds to the JSON property mimeType
165 166 167 |
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 165 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
172 173 174 175 |
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 172 def update!(**args) @data = args[:data] if args.key?(:data) @mime_type = args[:mime_type] if args.key?(:mime_type) end |