Class: Y2Network::Widgets::S390DataChannel
- Inherits:
-
CWM::InputField
- Object
- CWM::InputField
- Y2Network::Widgets::S390DataChannel
- Defined in:
- src/lib/y2network/widgets/s390_channels.rb
Overview
Widget for setting the s390 device data channel
Instance Method Summary collapse
- #init ⇒ Object
-
#initialize(settings) ⇒ S390DataChannel
constructor
Constructor.
- #label ⇒ Object
- #opt ⇒ Object
- #store ⇒ Object
Constructor Details
#initialize(settings) ⇒ S390DataChannel
Constructor
120 121 122 123 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 120 def initialize(settings) textdomain "network" @settings = settings end |
Instance Method Details
#init ⇒ Object
126 127 128 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 126 def init self.value = @settings.data_channel end |
#label ⇒ Object
136 137 138 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 136 def label _("Control Channel") end |
#opt ⇒ Object
131 132 133 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 131 def opt [:hstretch] end |
#store ⇒ Object
141 142 143 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 141 def store @settings.data_channel = value end |