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

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

Overview

Device display information.

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) ⇒ DisplayProp

Returns a new instance of DisplayProp.


1005
1006
1007
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1005

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)

973
974
975
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 973

def density
  @density
end

#display_idFixnum

Unique display id. Corresponds to the JSON property displayId

Returns:

  • (Fixnum)

978
979
980
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 978

def display_id
  @display_id
end

#heightFixnum

Display height in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)

983
984
985
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 983

def height
  @height
end

#nameString

Name of the display. Corresponds to the JSON property name

Returns:

  • (String)

988
989
990
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 988

def name
  @name
end

#refresh_rateFixnum

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

Returns:

  • (Fixnum)

993
994
995
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 993

def refresh_rate
  @refresh_rate
end

#stateString

State of the display. Corresponds to the JSON property state

Returns:

  • (String)

998
999
1000
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 998

def state
  @state
end

#widthFixnum

Display width in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)

1003
1004
1005
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1003

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1010
1011
1012
1013
1014
1015
1016
1017
1018
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1010

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