Studitemps::Utils::URI.build

Parsed documentation:
View on GitHub
Build a new Studitemps URI class from some base class.

@param schema [String] URI schema
@param context [String] URI context
@param resource [String] URI resrouce
@param from [Base] superclass to use
@return [Base] the new URI 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'>
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.