Class: Dependabot::MetadataFinders::Base::ChangelogFile

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/metadata_finders/base/changelog_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, size:, html_url:, download_url:, path: nil) ⇒ ChangelogFile

Returns a new instance of ChangelogFile.



47
48
49
50
51
52
53
54
# File 'lib/dependabot/metadata_finders/base/changelog_finder.rb', line 47

def initialize(name:, type:, size:, html_url:, download_url:, path: nil)
  @name = name
  @type = type
  @size = size
  @html_url = html_url
  @download_url = download_url
  @path = path
end

Instance Attribute Details

#download_urlObject (readonly)

Returns the value of attribute download_url.



32
33
34
# File 'lib/dependabot/metadata_finders/base/changelog_finder.rb', line 32

def download_url
  @download_url
end

#html_urlObject (readonly)

Returns the value of attribute html_url.



29
30
31
# File 'lib/dependabot/metadata_finders/base/changelog_finder.rb', line 29

def html_url
  @html_url
end

#nameObject (readonly)

Returns the value of attribute name.



20
21
22
# File 'lib/dependabot/metadata_finders/base/changelog_finder.rb', line 20

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



35
36
37
# File 'lib/dependabot/metadata_finders/base/changelog_finder.rb', line 35

def path
  @path
end

#sizeObject (readonly)

Returns the value of attribute size.



26
27
28
# File 'lib/dependabot/metadata_finders/base/changelog_finder.rb', line 26

def size
  @size
end

#typeObject (readonly)

Returns the value of attribute type.



23
24
25
# File 'lib/dependabot/metadata_finders/base/changelog_finder.rb', line 23

def type
  @type
end