Class: Dependabot::FileFetchers::RepositoryContent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, path: nil, type: nil, size: nil, sha: nil) ⇒ RepositoryContent

Returns a new instance of RepositoryContent.



49
50
51
52
53
54
55
# File 'lib/dependabot/file_fetchers/base.rb', line 49

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#shaObject (readonly)

Returns the value of attribute sha.



38
39
40
# File 'lib/dependabot/file_fetchers/base.rb', line 38

def sha
  @sha
end

#sizeObject (readonly)

Returns the value of attribute size.



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

def size
  @size
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end