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
122 123 124 125 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 122 def initialize(settings) textdomain "network" @settings = settings end |
Instance Method Details
#init ⇒ Object
128 129 130 131 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 128 def init self.value = @settings.data_channel disable end |
#label ⇒ Object
139 140 141 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 139 def label _("Control Channel") end |
#opt ⇒ Object
134 135 136 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 134 def opt [:hstretch] end |
#store ⇒ Object
144 145 146 |
# File 'src/lib/y2network/widgets/s390_channels.rb', line 144 def store @settings.data_channel = value end |