Class: Transformers::HfHub::HfFileMetadata
- Inherits:
-
Object
- Object
- Transformers::HfHub::HfFileMetadata
- Defined in:
- lib/transformers/hf_hub/file_download.rb
Instance Attribute Summary collapse
-
#commit_hash ⇒ Object
readonly
Returns the value of attribute commit_hash.
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(commit_hash:, etag:, location:, size:) ⇒ HfFileMetadata
constructor
A new instance of HfFileMetadata.
Constructor Details
#initialize(commit_hash:, etag:, location:, size:) ⇒ HfFileMetadata
Returns a new instance of HfFileMetadata.
15 16 17 18 19 20 |
# File 'lib/transformers/hf_hub/file_download.rb', line 15 def initialize(commit_hash:, etag:, location:, size:) @commit_hash = commit_hash @etag = etag @location = location @size = size end |
Instance Attribute Details
#commit_hash ⇒ Object (readonly)
Returns the value of attribute commit_hash.
13 14 15 |
# File 'lib/transformers/hf_hub/file_download.rb', line 13 def commit_hash @commit_hash end |
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
13 14 15 |
# File 'lib/transformers/hf_hub/file_download.rb', line 13 def etag @etag end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
13 14 15 |
# File 'lib/transformers/hf_hub/file_download.rb', line 13 def location @location end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
13 14 15 |
# File 'lib/transformers/hf_hub/file_download.rb', line 13 def size @size end |