Module: SPOT::Configuration
- Included in:
- SPOT
- Defined in:
- lib/spot-gps/configuration.rb
Instance Attribute Summary collapse
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
3 4 5 |
# File 'lib/spot-gps/configuration.rb', line 3 def open_timeout @open_timeout end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
3 4 5 |
# File 'lib/spot-gps/configuration.rb', line 3 def read_timeout @read_timeout end |
Class Method Details
.extended(base) ⇒ Object
5 6 7 |
# File 'lib/spot-gps/configuration.rb', line 5 def self.extended(base) base.reset end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
9 10 11 |
# File 'lib/spot-gps/configuration.rb', line 9 def configure yield self end |
#endpoint ⇒ Object
18 19 20 |
# File 'lib/spot-gps/configuration.rb', line 18 def endpoint "https://api.findmespot.com/spot-main-web/consumer/rest-api/2.0/public/feed/" end |
#reset ⇒ Object
13 14 15 16 |
# File 'lib/spot-gps/configuration.rb', line 13 def reset self.open_timeout = 30 self.read_timeout = 80 end |