Class: LWS::Resource::Folder

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/resource.rb

Overview

The folder class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#accountLWS::Auth::Account



498
# File 'lib/lws/apps/resource.rb', line 498

belongs_to :account, class_name: "LWS::Auth::Account"

#account_idInteger



503
# File 'lib/lws/apps/resource.rb', line 503

attribute :account_id

#collectionsArray<Collection>



507
# File 'lib/lws/apps/resource.rb', line 507

has_many :collections

#companyLWS::Auth::Company



511
# File 'lib/lws/apps/resource.rb', line 511

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idInteger



515
# File 'lib/lws/apps/resource.rb', line 515

attribute :company_id

#deleted_atString?



519
# File 'lib/lws/apps/resource.rb', line 519

attribute :deleted_at

#descriptionString



523
# File 'lib/lws/apps/resource.rb', line 523

attribute :description

#favouriteBoolean



531
# File 'lib/lws/apps/resource.rb', line 531

attribute :favourite

#foldersArray<Folder>



527
# File 'lib/lws/apps/resource.rb', line 527

has_many :folders

#nameString



535
# File 'lib/lws/apps/resource.rb', line 535

attribute :name

#parentFolder?



539
540
# File 'lib/lws/apps/resource.rb', line 539

belongs_to :parent, class_name: "LWS::Resource::Folder",
foreign_key: "parent_id"

#parent_idInteger?



544
# File 'lib/lws/apps/resource.rb', line 544

attribute :parent_id

#permission"700", ...

A UNIX-style permission that indicates whether the folder is shared and who can read/write in it:

  • 700: not shared (the default), only readable/writable by the associated account

  • 740: readable by anyone in the company

  • 770: readable/writeable by anyone in the company



554
# File 'lib/lws/apps/resource.rb', line 554

attribute :permission

#temporaryBoolean



559
# File 'lib/lws/apps/resource.rb', line 559

attribute :temporary