Class: ROX::Folders
- Inherits:
-
Object
- Object
- ROX::Folders
- Defined in:
- lib/rox/folders.rb
Instance Method Summary collapse
- #get_columns(*columns) ⇒ Object
-
#initialize(client) ⇒ Folders
constructor
A new instance of Folders.
- #root(*columns) ⇒ Object
Constructor Details
#initialize(client) ⇒ Folders
Returns a new instance of Folders.
36 37 38 39 |
# File 'lib/rox/folders.rb', line 36 def initialize(client) @client = client @columns = COLUMN_DEFINITIONS[:folder] end |
Instance Method Details
#get_columns(*columns) ⇒ Object
46 47 48 |
# File 'lib/rox/folders.rb', line 46 def get_columns(*columns) @columns.sublist(*columns) end |
#root(*columns) ⇒ Object
41 42 43 44 |
# File 'lib/rox/folders.rb', line 41 def root(*columns) column_list = get_columns(*columns) @client.get_response("/ajax/folders", :action => :root, :columns => column_list.to_s) end |