Class: Hypernova::BatchUrlBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/hypernova/batch_url_builder.rb

Class Method Summary collapse

Class Method Details

.base_urlObject



4
5
6
7
8
# File 'lib/hypernova/batch_url_builder.rb', line 4

def self.base_url
  configuration = Hypernova.configuration
  builder = configuration.scheme == :https ? URI::HTTPS : URI::HTTP
  builder.build(host: configuration.host, port: configuration.port).to_s
end

.pathObject



10
11
12
# File 'lib/hypernova/batch_url_builder.rb', line 10

def self.path
  "/batch"
end