Module: ConfigParams

Included in:
Query
Defined in:
lib/api_object/config_params.rb

Constant Summary collapse

IPV4_REGEXP =
/\A(?:25[0-5]|(?:2[0-4]|1\d|[1-9])?\d)(?:\.(?:25[0-5]|(?:2[0-4]|1\d|[1-9])?\d)){3}\z/
TIMEOUT =
3
FALLBACK_TIMEOUT =
3

Instance Method Summary collapse

Instance Method Details

#fallback_timeoutObject



15
16
17
# File 'lib/api_object/config_params.rb', line 15

def fallback_timeout
   FALLBACK_TIMEOUT
end

#fallback_timeout=(fallback_timeout) ⇒ Object



19
20
21
# File 'lib/api_object/config_params.rb', line 19

def fallback_timeout= fallback_timeout
   self.FALLBACK_TIMEOUT = fallback_timeout
end

#timeoutObject



7
8
9
# File 'lib/api_object/config_params.rb', line 7

def timeout
   TIMEOUT
end

#timeout=(timeout) ⇒ Object



11
12
13
# File 'lib/api_object/config_params.rb', line 11

def timeout= timeout
   self.TIMEOUT = timeout
end