Class: Y2Network::Widgets::WirelessAPScanMode

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

Overview

widget to set Scan mode

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ WirelessAPScanMode


125
126
127
128
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 125

def initialize(settings)
  @settings = settings
  textdomain "network"
end

Instance Method Details

#initObject


146
147
148
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 146

def init
  self.value = @settings.ap_scanmode
end

#labelObject


134
135
136
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 134

def label
  _("AP ScanMode")
end

#maximumObject


142
143
144
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 142

def maximum
  2
end

#minimumObject


138
139
140
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 138

def minimum
  0
end

#optObject


130
131
132
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 130

def opt
  [:hstretch]
end

#storeObject


150
151
152
# File 'src/lib/y2network/widgets/wireless_expert.rb', line 150

def store
  @settings.ap_scanmode = value
end