Module: KebutSemalam::LokasiMeta
- Defined in:
- lib/adaptor/adaptor.rb
Constant Summary collapse
- PANGKALAN =
URI.parse(KebutSemalam::LokasiWeb::HOST)
- F_LOKASI =
URI.parse('/api/unduh.php?label=lokasi')
- F_TEMA =
URI.parse('/api/unduh.php?label=tema')
- F_RISET =
URI.parse('/api/unduh.php?label=riset')
- F_NTAP =
URI.parse('/api/unduh.php?label=ntap')
- G_DOCUMENT =
URI.parse('/api/paragraph.php')
- UserAgent =
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'.freeze
- GUIDE =
'Gunakan https://snailight.kupunyakucing.my.id/#daftar untuk mendapatkan Api Key'.freeze
Class Method Summary collapse
Class Method Details
.buat_internet(uri) ⇒ Object
33 34 35 |
# File 'lib/adaptor/adaptor.rb', line 33 def self.buat_internet(uri) Net::HTTP.start(uri.host, uri.port, use_ssl: true) end |
.gerbang ⇒ Object
41 42 43 |
# File 'lib/adaptor/adaptor.rb', line 41 def self.gerbang return @http end |