Class: Vortex::Collection
Overview
Collection (folder)
Direct Known Subclasses
ArticleListingCollection, EventListingCollection, PersonListingCollection
Instance Attribute Summary collapse
-
#foldername ⇒ Object
Returns the value of attribute foldername.
-
#introduction ⇒ Object
Returns the value of attribute introduction.
-
#name ⇒ Object
Returns the value of attribute name.
-
#navigationTitle ⇒ Object
Returns the value of attribute navigationTitle.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#sortByDate ⇒ Object
Returns the value of attribute sortByDate.
-
#sortByTitle ⇒ Object
Returns the value of attribute sortByTitle.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Collection
constructor
A new instance of Collection.
- #properties ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Collection
Returns a new instance of Collection.
676 677 678 |
# File 'lib/vortex_client.rb', line 676 def initialize(={}) .each{|k,v|send("#{k}=",v)} end |
Instance Attribute Details
#foldername ⇒ Object
Returns the value of attribute foldername.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def foldername @foldername end |
#introduction ⇒ Object
Returns the value of attribute introduction.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def introduction @introduction end |
#name ⇒ Object
Returns the value of attribute name.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def name @name end |
#navigationTitle ⇒ Object
Returns the value of attribute navigationTitle.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def @navigationTitle end |
#owner ⇒ Object
Returns the value of attribute owner.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def owner @owner end |
#sortByDate ⇒ Object
Returns the value of attribute sortByDate.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def sortByDate @sortByDate end |
#sortByTitle ⇒ Object
Returns the value of attribute sortByTitle.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def sortByTitle @sortByTitle end |
#title ⇒ Object
Returns the value of attribute title.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
658 659 660 |
# File 'lib/vortex_client.rb', line 658 def url @url end |
Instance Method Details
#properties ⇒ Object
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( and != "") props += "<v:navigationTitle xmlns:v=\"vrtx\">#{}</v:navigationTitle>" end if(owner and owner != "") props += "<owner xmlns=\"vrtx\">#{owner}</owner>" end return props end |
#to_s ⇒ Object
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 |