Class: Vortex::Collection

Inherits:
Resource show all
Defined in:
lib/vortex_client.rb

Overview

Collection (folder)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Collection

Returns a new instance of Collection.



676
677
678
# File 'lib/vortex_client.rb', line 676

def initialize(options={})
  options.each{|k,v|send("#{k}=",v)}
end

Instance Attribute Details

#foldernameObject

Returns the value of attribute foldername.



658
659
660
# File 'lib/vortex_client.rb', line 658

def foldername
  @foldername
end

#introductionObject

Returns the value of attribute introduction.



658
659
660
# File 'lib/vortex_client.rb', line 658

def introduction
  @introduction
end

#nameObject

Returns the value of attribute name.



658
659
660
# File 'lib/vortex_client.rb', line 658

def name
  @name
end

Returns the value of attribute navigationTitle.



658
659
660
# File 'lib/vortex_client.rb', line 658

def navigationTitle
  @navigationTitle
end

#ownerObject

Returns the value of attribute owner.



658
659
660
# File 'lib/vortex_client.rb', line 658

def owner
  @owner
end

#sortByDateObject

Returns the value of attribute sortByDate.



658
659
660
# File 'lib/vortex_client.rb', line 658

def sortByDate
  @sortByDate
end

#sortByTitleObject

Returns the value of attribute sortByTitle.



658
659
660
# File 'lib/vortex_client.rb', line 658

def sortByTitle
  @sortByTitle
end

#titleObject

Returns the value of attribute title.



658
659
660
# File 'lib/vortex_client.rb', line 658

def title
  @title
end

#urlObject

Returns the value of attribute url.



658
659
660
# File 'lib/vortex_client.rb', line 658

def url
  @url
end

Instance Method Details

#propertiesObject



684
685
686
687
688
689
690
691
692
693
694
695
696
# File 'lib/vortex_client.rb', line 684

def properties()
  props = "<v:resourceType xmlns:v=\"vrtx\">collection</v:resourceType>"
  if(title and title != "")
    props += "<v:userTitle xmlns:v=\"vrtx\">#{title}</v:userTitle>"
  end
  if(navigationTitle and navigationTitle != "")
    props += "<v:navigationTitle xmlns:v=\"vrtx\">#{navigationTitle}</v:navigationTitle>"
  end
  if(owner and owner != "")
    props += "<owner xmlns=\"vrtx\">#{owner}</owner>"
  end
  return props
end

#to_sObject



680
681
682
# File 'lib/vortex_client.rb', line 680

def to_s
  "#<Vortex::Collection "+instance_variables.collect{|var|var+": "+instance_variable_get(var).to_s}.join(",")+">"
end