Class: Stratagem::Crawler::Select
- Defined in:
- lib/stratagem/crawler/form.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Input
Instance Method Summary collapse
- #<<(value) ⇒ Object
- #choose(value) ⇒ Object
-
#initialize ⇒ Select
constructor
A new instance of Select.
Methods inherited from Input
#guess_alternate_attribute, #guess_attribute, #guess_model, #hidden?
Constructor Details
#initialize ⇒ Select
Returns a new instance of Select.
107 108 109 |
# File 'lib/stratagem/crawler/form.rb', line 107 def initialize @options = [] end |
Instance Method Details
#<<(value) ⇒ Object
115 116 117 118 |
# File 'lib/stratagem/crawler/form.rb', line 115 def <<(value) @options << value self.value = value if self.value.nil? end |
#choose(value) ⇒ Object
111 112 113 |
# File 'lib/stratagem/crawler/form.rb', line 111 def choose(value) @value = value end |