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.



634
635
636
# File 'lib/vortex_client.rb', line 634

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

Instance Attribute Details

#foldernameObject

Returns the value of attribute foldername.



616
617
618
# File 'lib/vortex_client.rb', line 616

def foldername
  @foldername
end

#introductionObject

Returns the value of attribute introduction.



616
617
618
# File 'lib/vortex_client.rb', line 616

def introduction
  @introduction
end

#nameObject

Returns the value of attribute name.



616
617
618
# File 'lib/vortex_client.rb', line 616

def name
  @name
end

Returns the value of attribute navigationTitle.



616
617
618
# File 'lib/vortex_client.rb', line 616

def navigationTitle
  @navigationTitle
end

#ownerObject

Returns the value of attribute owner.



616
617
618
# File 'lib/vortex_client.rb', line 616

def owner
  @owner
end

#sortByDateObject

Returns the value of attribute sortByDate.



616
617
618
# File 'lib/vortex_client.rb', line 616

def sortByDate
  @sortByDate
end

#sortByTitleObject

Returns the value of attribute sortByTitle.



616
617
618
# File 'lib/vortex_client.rb', line 616

def sortByTitle
  @sortByTitle
end

#titleObject

Returns the value of attribute title.



616
617
618
# File 'lib/vortex_client.rb', line 616

def title
  @title
end

#urlObject

Returns the value of attribute url.



616
617
618
# File 'lib/vortex_client.rb', line 616

def url
  @url
end

Instance Method Details

#propertiesObject



642
643
644
645
646
647
648
649
650
651
652
653
654
# File 'lib/vortex_client.rb', line 642

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



638
639
640
# File 'lib/vortex_client.rb', line 638

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