Class: YuiRestClient::Widgets::Radiobutton
- Defined in:
- lib/yui_rest_client/widgets/radiobutton.rb
Overview
Class representing a RadioButton in the UI. It can be YRadioButton.
Instance Method Summary collapse
-
#select ⇒ Radiobutton
Sends action to select the radiobutton in UI.
-
#selected? ⇒ Boolean
Returns the state of radiobutton (selected or not).
Methods inherited from Base
#action, #collect_all, #debug_label, #enabled?, #exists?, #initialize, #property
Methods included from YuiRestClient::Waitable
Constructor Details
This class inherits a constructor from YuiRestClient::Widgets::Base
Instance Method Details
#select ⇒ Radiobutton
Sends action to select the radiobutton in UI.
11 12 13 14 |
# File 'lib/yui_rest_client/widgets/radiobutton.rb', line 11 def select action(action: Actions::SELECT) self end |
#selected? ⇒ Boolean
Returns the state of radiobutton (selected or not). Gets value from ‘value’ parameter in JSON representation of YRadioButton.
30 31 32 |
# File 'lib/yui_rest_client/widgets/radiobutton.rb', line 30 def selected? property(:value) end |