Sha256: 56320f474367abf9f0a851a8a7c033ef2268b14a1a2230d5e662843828c0f954
Contents?: true
Size: 850 Bytes
Versions: 1
Compression:
Stored size: 850 Bytes
Contents
# frozen_string_literal: true require_relative "derivation_endpoint/version" require_relative "derivation_endpoint/validation" module DerivationEndpoint autoload :Config, "derivation_endpoint/config" autoload :Attacher, "derivation_endpoint/attacher" autoload :Attachment, "derivation_endpoint/attachment" autoload :Derivation, "derivation_endpoint/derivation" autoload :Serializer, "derivation_endpoint/serializer" class << self def extended(base) base.include(DerivationEndpoint::Attachment) end def configure yield config if block_given? end def config @_config ||= Config.new end def derivation_path return unless config.valid? "/#{config.prefix}" end def base_url return unless config.valid? config.host + derivation_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
derivation_endpoint-0.1.0 | lib/derivation_endpoint.rb |