Class: Google::Apis::AndroidmanagementV1::DisplayProp

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

Overview

Device display information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DisplayProp

Returns a new instance of DisplayProp.



1242
1243
1244
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1242

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

Instance Attribute Details

#densityFixnum

Display density expressed as dots-per-inch. Corresponds to the JSON property density

Returns:

  • (Fixnum)


1210
1211
1212
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1210

def density
  @density
end

#display_idFixnum

Unique display id. Corresponds to the JSON property displayId

Returns:

  • (Fixnum)


1215
1216
1217
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1215

def display_id
  @display_id
end

#heightFixnum

Display height in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1220
1221
1222
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1220

def height
  @height
end

#nameString

Name of the display. Corresponds to the JSON property name

Returns:

  • (String)


1225
1226
1227
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1225

def name
  @name
end

#refresh_rateFixnum

Refresh rate of the display in frames per second. Corresponds to the JSON property refreshRate

Returns:

  • (Fixnum)


1230
1231
1232
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1230

def refresh_rate
  @refresh_rate
end

#stateString

State of the display. Corresponds to the JSON property state

Returns:

  • (String)


1235
1236
1237
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1235

def state
  @state
end

#widthFixnum

Display width in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1240
1241
1242
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1240

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1247
1248
1249
1250
1251
1252
1253
1254
1255
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1247

def update!(**args)
  @density = args[:density] if args.key?(:density)
  @display_id = args[:display_id] if args.key?(:display_id)
  @height = args[:height] if args.key?(:height)
  @name = args[:name] if args.key?(:name)
  @refresh_rate = args[:refresh_rate] if args.key?(:refresh_rate)
  @state = args[:state] if args.key?(:state)
  @width = args[:width] if args.key?(:width)
end