Class: Dependabot::GitCommitChecker::SourceDetails

Inherits:
T::ImmutableStruct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/git_commit_checker/source_details.rb

Overview

Typed view over the source hash attached to a git dependency.

Class Method Summary collapse

Class Method Details

.from_hash(details) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/dependabot/git_commit_checker/source_details.rb', line 20

def self.from_hash(details)
  new(
    type: string_value(details, :type),
    url: string_value(details, :url),
    branch: string_value(details, :branch),
    ref: string_value(details, :ref)
  )
end