Class: Y2Network::Widgets::S390LanCmdTimeout

Inherits:
CWM::InputField
  • Object
show all
Defined in:
src/lib/y2network/widgets/s390_common.rb

Overview

Widget for setting the Lcs group device lancmd timeout

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390LanCmdTimeout

Constructor


30
31
32
33
34
# File 'src/lib/y2network/widgets/s390_common.rb', line 30

def initialize(settings)
  textdomain "network"

  @settings = settings
end

Instance Method Details

#helpObject

See Also:

  • CWM::AbstractWidget

52
53
54
# File 'src/lib/y2network/widgets/s390_common.rb', line 52

def help
  _("<p>Specify the <b>LANCMD Time-Out</b> for this interface.</p>")
end

#initObject

See Also:

  • CWM::AbstractWidget

42
43
44
# File 'src/lib/y2network/widgets/s390_common.rb', line 42

def init
  self.value = @settings.timeout
end

#labelObject

See Also:

  • CWM::AbstractWidget

37
38
39
# File 'src/lib/y2network/widgets/s390_common.rb', line 37

def label
  _("&LANCMD Time-Out")
end

#storeObject

See Also:

  • CWM::AbstractWidget

47
48
49
# File 'src/lib/y2network/widgets/s390_common.rb', line 47

def store
  @settings.timeout = value
end