Module: Boxlet::Models

Defined in:
lib/boxlet/app/models.rb

Class Method Summary collapse

Class Method Details

.file_modelObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/boxlet/app/models.rb', line 3

def self.file_model
  {
    filename: '',
    size: 0,
    local_date: 0,
    thumbnail: '',
    asset_path: '',
    asset_date: '',
    uuid: []
  }
end

.user_modelObject



15
16
17
18
19
20
21
22
23
# File 'lib/boxlet/app/models.rb', line 15

def self.user_model
  {
    username: '',
    password: '',
    uuid: '',
    notifications: 1,
    last_activity: Time.now
  }
end