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.
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
#current ⇒ Object (readonly)
Returns the value of attribute current.
154 155 156 |
# File 'lib/xrandr.rb', line 154 def current @current end |
#preferred ⇒ Object (readonly)
Returns the value of attribute preferred.
154 155 156 |
# File 'lib/xrandr.rb', line 154 def preferred @preferred end |
#rate ⇒ Object (readonly)
Returns the value of attribute rate.
154 155 156 |
# File 'lib/xrandr.rb', line 154 def rate @rate end |
#resolution ⇒ Object (readonly)
Returns the value of attribute resolution.
154 155 156 |
# File 'lib/xrandr.rb', line 154 def resolution @resolution end |