Class: ROX::Folders

Inherits:
Object
  • Object
show all
Defined in:
lib/rox/folders.rb

Instance Method Summary collapse

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