Studitemps::Utils::URI#build

Parsed documentation:
View on GitHub
Build a new Studitemps URI class from some base class.
@example Basic usage
  require 'studitemps/utils/uri'
  
  ExampleURI = Studitemps::Utils::URI.build(schema: 'com.example')
  
  ExampleURI.new # => #<ExampleURI 'com.example'>
  
  uri = ExampleURI.new(context: 'billing', resource: 'invoice', id: 'R422342')
  # => #<ExampleURI 'com.example:billing:invoice:R422342'>
  
  uri.to_s # => 'com.example:billing:invoice:R422342'
  
  ExampleURI.build('com.example:billing:invoice:R422342')
  # => #<ExampleURI 'com.example:billing:invoice:R422342'>
@param [String] resource
  URI resrouce
@param [String] context
  URI context
@param [String] schema
  URI schema
@param [Base] from
  superclass to use
@return [Base] the new URI class
@since 0.1.0
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.