Class: DockerRegistry2::Blob
- Inherits:
-
Object
- Object
- DockerRegistry2::Blob
- Defined in:
- lib/registry/blob.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(headers, body) ⇒ Blob
constructor
A new instance of Blob.
Constructor Details
#initialize(headers, body) ⇒ Blob
Returns a new instance of Blob.
7 8 9 10 |
# File 'lib/registry/blob.rb', line 7 def initialize(headers, body) @headers = headers @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/registry/blob.rb', line 5 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/registry/blob.rb', line 5 def headers @headers end |