Class: Playwright::SelectOptionValues
- Inherits:
-
Object
- Object
- Playwright::SelectOptionValues
- Defined in:
- lib/playwright/select_option_values.rb
Instance Method Summary collapse
- #as_params ⇒ Hash
-
#initialize(element: nil, index: nil, value: nil, label: nil) ⇒ SelectOptionValues
constructor
A new instance of SelectOptionValues.
Constructor Details
#initialize(element: nil, index: nil, value: nil, label: nil) ⇒ SelectOptionValues
Returns a new instance of SelectOptionValues.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/playwright/select_option_values.rb', line 3 def initialize(element: nil, index: nil, value: nil, label: nil) @params = if element convert(elmeent) elsif index convert(index) elsif value convert(value) elsif label convert(label) else {} end end |
Instance Method Details
#as_params ⇒ Hash
19 20 21 |
# File 'lib/playwright/select_option_values.rb', line 19 def as_params @params end |