Sha256: 3a28fbc8939de6faed8aba982e640d144bd609894dbf604c65c8162a2affee64
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
module Circular class API DEFAULT_DOMAIN = 'circleci.com' DEFAULT_PATH = 'api/v1' def initialize(params = {}) @options = params end private def domain @domain ||= @options[:domain] || DEFAULT_DOMAIN end def path @path ||= @options[:path] || DEFAULT_PATH end def base @base ||= "https://#{domain}/#{path}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
circular-0.0.1 | lib/circular/api.rb |