Class: RailsAiBridge::Registry::SourceParser::ParsedSource

Inherits:
Data
  • Object
show all
Defined in:
lib/rails_ai_bridge/registry/source_parser.rb

Overview

Immutable value object produced by parse.

Instance Attribute Summary collapse

Instance Attribute Details

#resolved_url ⇒ String (readonly)

Returns canonical URL/path suitable for git clone or direct use.

Returns:

  • (String) —

    canonical URL/path suitable for git clone or direct use



31
# File 'lib/rails_ai_bridge/registry/source_parser.rb', line 31

ParsedSource = Data.define(:type, :resolved_url)

#type ⇒ Symbol (readonly)

Returns :local_path, :git_url, or :github_shorthand.

Returns:

  • (Symbol) —

    :local_path, :git_url, or :github_shorthand



31
# File 'lib/rails_ai_bridge/registry/source_parser.rb', line 31

ParsedSource = Data.define(:type, :resolved_url)