Class: BlazingDocs::Configuration
- Inherits:
-
Object
- Object
- BlazingDocs::Configuration
- Defined in:
- lib/blazingdocs/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_uri ⇒ Object
readonly
Returns the value of attribute base_uri.
-
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#upload_timeout ⇒ Object
Returns the value of attribute upload_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 |
# File 'lib/blazingdocs/configuration.rb', line 12 def initialize @base_uri = URI('https://api.blazingdocs.com') @connect_timeout = 5 @read_timeout = 60 @upload_timeout = 1800 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/blazingdocs/configuration.rb', line 5 def api_key @api_key end |
#base_uri ⇒ Object (readonly)
Returns the value of attribute base_uri.
10 11 12 |
# File 'lib/blazingdocs/configuration.rb', line 10 def base_uri @base_uri end |
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
6 7 8 |
# File 'lib/blazingdocs/configuration.rb', line 6 def connect_timeout @connect_timeout end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
7 8 9 |
# File 'lib/blazingdocs/configuration.rb', line 7 def read_timeout @read_timeout end |
#upload_timeout ⇒ Object
Returns the value of attribute upload_timeout.
8 9 10 |
# File 'lib/blazingdocs/configuration.rb', line 8 def upload_timeout @upload_timeout end |