Class: Dependabot::FileFetchers::RepositoryContent
- Inherits:
-
Object
- Object
- Dependabot::FileFetchers::RepositoryContent
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/file_fetchers/base.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name: nil, path: nil, type: nil, size: nil, sha: nil) ⇒ RepositoryContent
constructor
A new instance of RepositoryContent.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
26 27 28 |
# File 'lib/dependabot/file_fetchers/base.rb', line 26 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
29 30 31 |
# File 'lib/dependabot/file_fetchers/base.rb', line 29 def path @path end |
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
38 39 40 |
# File 'lib/dependabot/file_fetchers/base.rb', line 38 def sha @sha end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
35 36 37 |
# File 'lib/dependabot/file_fetchers/base.rb', line 35 def size @size end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
32 33 34 |
# File 'lib/dependabot/file_fetchers/base.rb', line 32 def type @type end |