Class: TowerDataApi::Configuration
- Inherits:
-
Object
- Object
- TowerDataApi::Configuration
- Defined in:
- lib/towerdata_api/configuration.rb
Constant Summary collapse
- @@api_key =
nil- @@ca_file =
nil- @@bulk_timeout =
30- @@timeout =
2
Class Method Summary collapse
- .api_key ⇒ Object
- .api_key=(api_key) ⇒ Object
- .begin {|_self| ... } ⇒ Object
- .bulk_timeout=(timeout) ⇒ Object
- .ca_file ⇒ Object
- .ca_file=(ca_file) ⇒ Object
- .timeout ⇒ Object
- .timeout=(timeout) ⇒ Object
Class Method Details
.api_key ⇒ Object
13 14 15 |
# File 'lib/towerdata_api/configuration.rb', line 13 def self.api_key @@api_key end |
.api_key=(api_key) ⇒ Object
9 10 11 |
# File 'lib/towerdata_api/configuration.rb', line 9 def self.api_key= api_key @@api_key = api_key end |
.begin {|_self| ... } ⇒ Object
41 42 43 |
# File 'lib/towerdata_api/configuration.rb', line 41 def self.begin yield self end |
.bulk_timeout=(timeout) ⇒ Object
33 34 35 |
# File 'lib/towerdata_api/configuration.rb', line 33 def self.bulk_timeout= timeout @@bulk_timeout = timeout end |
.ca_file ⇒ Object
21 22 23 |
# File 'lib/towerdata_api/configuration.rb', line 21 def self.ca_file @@ca_file end |
.ca_file=(ca_file) ⇒ Object
17 18 19 |
# File 'lib/towerdata_api/configuration.rb', line 17 def self.ca_file= ca_file @@ca_file = ca_file end |
.timeout ⇒ Object
29 30 31 |
# File 'lib/towerdata_api/configuration.rb', line 29 def self.timeout @@timeout end |
.timeout=(timeout) ⇒ Object
25 26 27 |
# File 'lib/towerdata_api/configuration.rb', line 25 def self.timeout= timeout @@timeout = timeout end |