Class: FileInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/filer/file_info.rb

Instance Method Summary collapse

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_typeObject



12
13
14
# File 'lib/filer/file_info.rb', line 12

def content_type
  @values["contentType"]
end

#created_atObject



21
22
23
# File 'lib/filer/file_info.rb', line 21

def created_at
  @values["createdAt"]
end

#idObject



6
7
8
# File 'lib/filer/file_info.rb', line 6

def id
  @values["_id"]
end

#nameObject



9
10
11
# File 'lib/filer/file_info.rb', line 9

def name
  @values["name"]
end

#sizeObject



18
19
20
# File 'lib/filer/file_info.rb', line 18

def size
  @values["size"]
end

#uploaderObject



15
16
17
# File 'lib/filer/file_info.rb', line 15

def uploader
  @values["uploader"]
end