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.
634 635 636 |
# File 'lib/vortex_client.rb', line 634 def initialize(={}) .each{|k,v|send("#{k}=",v)} end |
Instance Attribute Details
#foldername ⇒ Object
Returns the value of attribute foldername.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def foldername @foldername end |
#introduction ⇒ Object
Returns the value of attribute introduction.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def introduction @introduction end |
#name ⇒ Object
Returns the value of attribute name.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def name @name end |
#navigationTitle ⇒ Object
Returns the value of attribute navigationTitle.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def @navigationTitle end |
#owner ⇒ Object
Returns the value of attribute owner.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def owner @owner end |
#sortByDate ⇒ Object
Returns the value of attribute sortByDate.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def sortByDate @sortByDate end |
#sortByTitle ⇒ Object
Returns the value of attribute sortByTitle.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def sortByTitle @sortByTitle end |
#title ⇒ Object
Returns the value of attribute title.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
616 617 618 |
# File 'lib/vortex_client.rb', line 616 def url @url end |
Instance Method Details
#properties ⇒ Object
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( 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
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 |