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.



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

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

Instance Attribute Details

#foldernameObject

Returns the value of attribute foldername.



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

def foldername
  @foldername
end

#introductionObject

Returns the value of attribute introduction.



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

def introduction
  @introduction
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Returns the value of attribute navigationTitle.



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

def navigationTitle
  @navigationTitle
end

#ownerObject

Returns the value of attribute owner.



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

def owner
  @owner
end

#sortByDateObject

Returns the value of attribute sortByDate.



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

def sortByDate
  @sortByDate
end

#sortByTitleObject

Returns the value of attribute sortByTitle.



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

def sortByTitle
  @sortByTitle
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end

Instance Method Details

#propertiesObject



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

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



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

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