Class: Xrandr::Mode

Inherits:
Object
  • Object
show all
Defined in:
lib/xrandr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Mode

Returns a new instance of Mode.



156
157
158
159
160
161
# File 'lib/xrandr.rb', line 156

def initialize(args={})
  @resolution = args.fetch :resolution
  @rate = args.fetch :rate
  @current = args.fetch :current
  @preferred = args.fetch :preferred
end

Instance Attribute Details

#currentObject (readonly)

Returns the value of attribute current.



154
155
156
# File 'lib/xrandr.rb', line 154

def current
  @current
end

#preferredObject (readonly)

Returns the value of attribute preferred.



154
155
156
# File 'lib/xrandr.rb', line 154

def preferred
  @preferred
end

#rateObject (readonly)

Returns the value of attribute rate.



154
155
156
# File 'lib/xrandr.rb', line 154

def rate
  @rate
end

#resolutionObject (readonly)

Returns the value of attribute resolution.



154
155
156
# File 'lib/xrandr.rb', line 154

def resolution
  @resolution
end