Class: Utils
- Inherits:
-
Object
- Object
- Utils
- Defined in:
- lib/api/utils.rb
Class Method Summary collapse
Class Method Details
.get_host_from_url(url) ⇒ Object
6 7 8 |
# File 'lib/api/utils.rb', line 6 def self.get_host_from_url(url) url.split(':')[1].split('/')[2] end |
.get_schema_from_url(url) ⇒ Object
2 3 4 |
# File 'lib/api/utils.rb', line 2 def self.get_schema_from_url(url) url.split(':')[0] end |