Class: ZiggeoConfig
- Inherits:
-
Object
- Object
- ZiggeoConfig
- Defined in:
- lib/classes/ZiggeoConfig.rb
Instance Attribute Summary collapse
-
#api_regions ⇒ Object
Returns the value of attribute api_regions.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#cdn_regions ⇒ Object
Returns the value of attribute cdn_regions.
-
#cdn_url ⇒ Object
Returns the value of attribute cdn_url.
-
#js_cdn_regions ⇒ Object
Returns the value of attribute js_cdn_regions.
-
#js_cdn_url ⇒ Object
Returns the value of attribute js_cdn_url.
-
#regions ⇒ Object
Returns the value of attribute regions.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
-
#request_timeout_per_mb ⇒ Object
Returns the value of attribute request_timeout_per_mb.
-
#resilience_factor ⇒ Object
Returns the value of attribute resilience_factor.
-
#resilience_on_fail ⇒ Object
Returns the value of attribute resilience_on_fail.
-
#server_api_url ⇒ Object
Returns the value of attribute server_api_url.
Instance Method Summary collapse
-
#initialize ⇒ ZiggeoConfig
constructor
A new instance of ZiggeoConfig.
Constructor Details
#initialize ⇒ ZiggeoConfig
Returns a new instance of ZiggeoConfig.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/classes/ZiggeoConfig.rb', line 5 def initialize() @request_timeout = 30 # seconds @request_timeout_per_mb = 20 # seconds per MB of uploaded file @server_api_url = "https://srv-api.ziggeo.com" @api_url = "https://api-us-east-1.ziggeo.com" @cdn_url = "https://video-cdn.ziggeo.com" @js_cdn_url = "https://media-cdn.ziggeo.com" @regions = {"r1" => "https://srv-api-eu-west-1.ziggeo.com", } @api_regions = {"r1" => "https://api-eu-west-1.ziggeo.com", } @cdn_regions = {"r1" => "https://video-cdn-eu-west-1.ziggeo.com", } @js_cdn_regions = {"r1" => "https://media-cdn-eu-west-1.ziggeo.com", } @resilience_factor = 5 @resilience_on_fail = {"error" => "Too many failed attempts"} end |
Instance Attribute Details
#api_regions ⇒ Object
Returns the value of attribute api_regions.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def api_regions @api_regions end |
#api_url ⇒ Object
Returns the value of attribute api_url.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def api_url @api_url end |
#cdn_regions ⇒ Object
Returns the value of attribute cdn_regions.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def cdn_regions @cdn_regions end |
#cdn_url ⇒ Object
Returns the value of attribute cdn_url.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def cdn_url @cdn_url end |
#js_cdn_regions ⇒ Object
Returns the value of attribute js_cdn_regions.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def js_cdn_regions @js_cdn_regions end |
#js_cdn_url ⇒ Object
Returns the value of attribute js_cdn_url.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def js_cdn_url @js_cdn_url end |
#regions ⇒ Object
Returns the value of attribute regions.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def regions @regions end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def request_timeout @request_timeout end |
#request_timeout_per_mb ⇒ Object
Returns the value of attribute request_timeout_per_mb.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def request_timeout_per_mb @request_timeout_per_mb end |
#resilience_factor ⇒ Object
Returns the value of attribute resilience_factor.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def resilience_factor @resilience_factor end |
#resilience_on_fail ⇒ Object
Returns the value of attribute resilience_on_fail.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def resilience_on_fail @resilience_on_fail end |
#server_api_url ⇒ Object
Returns the value of attribute server_api_url.
3 4 5 |
# File 'lib/classes/ZiggeoConfig.rb', line 3 def server_api_url @server_api_url end |