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.
5 6 7 8 |
# File 'lib/registry/blob.rb', line 5 def initialize(headers, body) @headers = headers @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/registry/blob.rb', line 3 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
3 4 5 |
# File 'lib/registry/blob.rb', line 3 def headers @headers end |