Class: Rstreamor::File
- Inherits:
-
Object
- Object
- Rstreamor::File
- Defined in:
- lib/rstreamor/file.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
- #content_type ⇒ Object
- #data ⇒ Object
-
#initialize(file) ⇒ File
constructor
A new instance of File.
- #size ⇒ Object
Constructor Details
#initialize(file) ⇒ File
Returns a new instance of File.
5 6 7 |
# File 'lib/rstreamor/file.rb', line 5 def initialize(file) self.file = file end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
3 4 5 |
# File 'lib/rstreamor/file.rb', line 3 def file @file end |
Instance Method Details
#content_type ⇒ Object
13 14 15 |
# File 'lib/rstreamor/file.rb', line 13 def content_type self.file.content_type end |
#data ⇒ Object
9 10 11 |
# File 'lib/rstreamor/file.rb', line 9 def data self.file.data end |
#size ⇒ Object
17 18 19 |
# File 'lib/rstreamor/file.rb', line 17 def size data.size end |