Class: Y2Network::Widgets::S390ReadChannel
- Inherits:
-
CWM::InputField
- Object
- CWM::InputField
- Y2Network::Widgets::S390ReadChannel
- Defined in:
- src/lib/y2network/widgets/s390_channels.rb
Overview
Widget for setting the s390 device read channel
Instance Method Summary collapse
- #init ⇒ Object
-
#initialize(settings) ⇒ S390ReadChannel
constructor
Constructor.
- #label ⇒ Object
- #opt ⇒ Object
- #store ⇒ Object
Constructor Details
#initialize(settings) ⇒ S390ReadChannel
Constructor
58 59 60 61 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 58 def initialize(settings) textdomain "network" @settings = settings end |
Instance Method Details
#init ⇒ Object
64 65 66 67 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 64 def init self.value = @settings.read_channel disable end |
#label ⇒ Object
75 76 77 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 75 def label _("&Read Channel") end |
#opt ⇒ Object
70 71 72 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 70 def opt [:hstretch] end |
#store ⇒ Object
80 81 82 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 80 def store @settings.read_channel = value end |