Method: BarcodeLookup#timeout
- Defined in:
- lib/barcode_lookup.rb
#timeout(sec) ⇒ Object
Set the HTTP timeout for API calls in seconds
Arguments: second: (Integer)
148 149 150 |
# File 'lib/barcode_lookup.rb', line 148 def timeout(sec) @timeout = sec end |