Class: Y2Network::Widgets::RemoteIP
- Inherits:
-
CWM::InputField
- Object
- CWM::InputField
- Y2Network::Widgets::RemoteIP
- Defined in:
- src/lib/y2network/widgets/remote_ip.rb
Instance Method Summary collapse
- #help ⇒ Object
- #init ⇒ Object
-
#initialize(settings) ⇒ RemoteIP
constructor
A new instance of RemoteIP.
- #label ⇒ Object
- #store ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(settings) ⇒ RemoteIP
Returns a new instance of RemoteIP.
28 29 30 31 32 |
# File 'src/lib/y2network/widgets/remote_ip.rb', line 28 def initialize(settings) textdomain "network" @settings = settings end |
Instance Method Details
#help ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'src/lib/y2network/widgets/remote_ip.rb', line 38 def help _( "<p>Enter the <b>IP Address</b> (for example: <tt>192.168.100.99</tt>) " \ "for your computer, and the \n" \ " <b>Remote IP Address</b> (for example: <tt>192.168.100.254</tt>)\n" \ "for your peer.</p>\n" ) end |
#init ⇒ Object
47 48 49 |
# File 'src/lib/y2network/widgets/remote_ip.rb', line 47 def init self.value = @settings.remote_ip end |
#label ⇒ Object
34 35 36 |
# File 'src/lib/y2network/widgets/remote_ip.rb', line 34 def label _("R&emote IP Address") end |
#store ⇒ Object
51 52 53 |
# File 'src/lib/y2network/widgets/remote_ip.rb', line 51 def store @settings.remote_ip = value end |