Class: LWS::Resource::Folder
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Resource::Folder
- Defined in:
- lib/lws/apps/resource.rb
Overview
The folder class
Instance Attribute Summary collapse
-
#account ⇒ LWS::Auth::Account
The account of the user that created the folder.
-
#account_id ⇒ Integer
The ID of the account of the user that created the folder.
-
#collections ⇒ Array<Collection>
The collections filed in the folder.
-
#company ⇒ LWS::Auth::Company
The company the folder belongs to.
-
#company_id ⇒ Integer
The ID of the company the folder belongs to.
-
#favourite ⇒ Boolean
Flag whether the folder is considered as a favourite.
-
#folders ⇒ Array<Folder>
The folders contained in the folder.
-
#name ⇒ String
The name of the folder.
-
#parent ⇒ Folder?
The parent folder of the folder.
-
#parent_id ⇒ Integer?
The ID of the parent folder of the folder.
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
Instance Attribute Details
#account ⇒ LWS::Auth::Account
Returns the account of the user that created the folder.
417 |
# File 'lib/lws/apps/resource.rb', line 417 belongs_to :account, class_name: "LWS::Auth::Account" |
#account_id ⇒ Integer
Returns the ID of the account of the user that created the folder.
422 |
# File 'lib/lws/apps/resource.rb', line 422 attribute :account_id |
#collections ⇒ Array<Collection>
Returns the collections filed in the folder.
426 |
# File 'lib/lws/apps/resource.rb', line 426 has_many :collections |
#company ⇒ LWS::Auth::Company
Returns the company the folder belongs to.
430 |
# File 'lib/lws/apps/resource.rb', line 430 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company the folder belongs to.
434 |
# File 'lib/lws/apps/resource.rb', line 434 attribute :company_id |
#favourite ⇒ Boolean
Returns flag whether the folder is considered as a favourite.
442 |
# File 'lib/lws/apps/resource.rb', line 442 attribute :favourite |
#folders ⇒ Array<Folder>
Returns the folders contained in the folder.
438 |
# File 'lib/lws/apps/resource.rb', line 438 has_many :folders |
#name ⇒ String
Returns the name of the folder.
446 |
# File 'lib/lws/apps/resource.rb', line 446 attribute :name |
#parent ⇒ Folder?
Returns the parent folder of the folder.
450 451 |
# File 'lib/lws/apps/resource.rb', line 450 belongs_to :parent, class_name: "LWS::Resource::Folder", foreign_key: "parent_id" |
#parent_id ⇒ Integer?
Returns the ID of the parent folder of the folder.
455 |
# File 'lib/lws/apps/resource.rb', line 455 attribute :parent_id |