Class: Google::Apis::GamesV1::ImageAsset

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

Overview

An image asset object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageAsset

Returns a new instance of ImageAsset.



1114
1115
1116
# File 'lib/google/apis/games_v1/classes.rb', line 1114

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

Instance Attribute Details

#heightFixnum

The height of the asset. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1091
1092
1093
# File 'lib/google/apis/games_v1/classes.rb', line 1091

def height
  @height
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#imageAsset. Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

#nameString

The name of the asset. Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @name
end

#urlString

The URL of the asset. Corresponds to the JSON property url

Returns:

  • (String)


1107
1108
1109
# File 'lib/google/apis/games_v1/classes.rb', line 1107

def url
  @url
end

#widthFixnum

The width of the asset. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1112
1113
1114
# File 'lib/google/apis/games_v1/classes.rb', line 1112

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1119
1120
1121
1122
1123
1124
1125
# File 'lib/google/apis/games_v1/classes.rb', line 1119

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @url = args[:url] if args.key?(:url)
  @width = args[:width] if args.key?(:width)
end