class Google::Apis::ChatV1::GoogleAppsCardV1ImageCropStyle

Represents the crop style applied to an image.

Attributes

aspect_ratio[RW]

The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. Corresponds to the JSON property `aspectRatio` @return [Float]

type[RW]

The crop type. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 1614
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/chat_v1/classes.rb, line 1619
def update!(**args)
  @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
  @type = args[:type] if args.key?(:type)
end