Sha256: 9ab3899365c9f338e0cf92927432dc45e6841e2dd4312298d98d704bd648c11d

Contents?: true

Size: 325 Bytes

Versions: 4

Compression:

Stored size: 325 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 uploader
    @values["uploader"]
  end
  def size
    @values["size"]
  end
  def created_at
    @values["createdAt"]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
progstr-filer-0.8.11 lib/filer/file_info.rb
progstr-filer-0.8.10 lib/filer/file_info.rb
progstr-filer-0.8.9 lib/filer/file_info.rb
progstr-filer-0.8.8 lib/filer/file_info.rb