Class: Bricolage::StreamingLoad::Chunk
- Inherits:
-
Object
- Object
- Bricolage::StreamingLoad::Chunk
- Defined in:
- lib/bricolage/streamingload/chunk.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id:, url:, size: nil) ⇒ Chunk
constructor
A new instance of Chunk.
Constructor Details
#initialize(id:, url:, size: nil) ⇒ Chunk
Returns a new instance of Chunk.
6 7 8 9 10 |
# File 'lib/bricolage/streamingload/chunk.rb', line 6 def initialize(id:, url:, size: nil) @id = id @url = url @size = size end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/bricolage/streamingload/chunk.rb', line 12 def id @id end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
14 15 16 |
# File 'lib/bricolage/streamingload/chunk.rb', line 14 def size @size end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
13 14 15 |
# File 'lib/bricolage/streamingload/chunk.rb', line 13 def url @url end |