Sha256: 1ef1dcb2902dcfc1dcb6ea66ba25c3b0eb9921f057e789516a212ebf9034897c

Contents?: true

Size: 370 Bytes

Versions: 8

Compression:

Stored size: 370 Bytes

Contents

class FileInfo
  def initialize(values)
    @values = values
  end

  def id
    @values["_id"]
  end
  def name
    @values["name"]
  end
  def content_type
    @values["contentType"]
  end
  def property
    @values["property"]
  end
  def uploader
    @values["uploader"]
  end
  def size
    @values["size"]
  end
  def created_at
    @values["createdAt"]
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
progstr-filer-0.8.7 lib/filer/file_info.rb
progstr-filer-0.8.6 lib/filer/file_info.rb
progstr-filer-0.8.5 lib/filer/file_info.rb
progstr-filer-0.8.4 lib/filer/file_info.rb
progstr-filer-0.8.3 lib/filer/file_info.rb
progstr-filer-0.8.2 lib/filer/file_info.rb
progstr-filer-0.8.1 lib/filer/file_info.rb
progstr-filer-0.8.0 lib/filer/file_info.rb