Class: Xrandr::Mode
- Inherits:
-
Object
- Object
- Xrandr::Mode
- Defined in:
- lib/xrandr.rb
Instance Attribute Summary collapse
-
#current ⇒ Object
readonly
Returns the value of attribute current.
-
#preferred ⇒ Object
readonly
Returns the value of attribute preferred.
-
#rate ⇒ Object
readonly
Returns the value of attribute rate.
-
#resolution ⇒ Object
readonly
Returns the value of attribute resolution.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Mode
constructor
A new instance of Mode.
Constructor Details
#initialize(args = {}) ⇒ Mode
Returns a new instance of Mode.
150 151 152 153 154 155 |
# File 'lib/xrandr.rb', line 150 def initialize(args={}) @resolution = args.fetch :resolution @rate = args.fetch :rate @current = args.fetch :current @preferred = args.fetch :preferred end |
Instance Attribute Details
#current ⇒ Object (readonly)
Returns the value of attribute current.
148 149 150 |
# File 'lib/xrandr.rb', line 148 def current @current end |
#preferred ⇒ Object (readonly)
Returns the value of attribute preferred.
148 149 150 |
# File 'lib/xrandr.rb', line 148 def preferred @preferred end |
#rate ⇒ Object (readonly)
Returns the value of attribute rate.
148 149 150 |
# File 'lib/xrandr.rb', line 148 def rate @rate end |
#resolution ⇒ Object (readonly)
Returns the value of attribute resolution.
148 149 150 |
# File 'lib/xrandr.rb', line 148 def resolution @resolution end |