Class: FileInfo
- Inherits:
-
Object
- Object
- FileInfo
- Defined in:
- lib/filer/file_info.rb
Instance Method Summary collapse
- #content_type ⇒ Object
- #created_at ⇒ Object
- #id ⇒ Object
-
#initialize(values) ⇒ FileInfo
constructor
A new instance of FileInfo.
- #name ⇒ Object
- #size ⇒ Object
- #uploader ⇒ Object
Constructor Details
#initialize(values) ⇒ FileInfo
Returns a new instance of FileInfo.
2 3 4 |
# File 'lib/filer/file_info.rb', line 2 def initialize(values) @values = values end |
Instance Method Details
#content_type ⇒ Object
12 13 14 |
# File 'lib/filer/file_info.rb', line 12 def content_type @values["contentType"] end |
#created_at ⇒ Object
21 22 23 |
# File 'lib/filer/file_info.rb', line 21 def created_at @values["createdAt"] end |
#id ⇒ Object
6 7 8 |
# File 'lib/filer/file_info.rb', line 6 def id @values["_id"] end |
#name ⇒ Object
9 10 11 |
# File 'lib/filer/file_info.rb', line 9 def name @values["name"] end |
#size ⇒ Object
18 19 20 |
# File 'lib/filer/file_info.rb', line 18 def size @values["size"] end |
#uploader ⇒ Object
15 16 17 |
# File 'lib/filer/file_info.rb', line 15 def uploader @values["uploader"] end |