Class: RSS::Maker::ItemsBase::ItemBase

Inherits:
Base
  • Object
show all
Includes:
ContentModel, DublinCoreModel, RSS::Maker::ITunesItemModel, RSS::Maker::ImageItemModel, SetupDefaultDate, SlashModel, TaxonomyTopicsModel, TrackBackModel
Defined in:
lib/rss/maker/base.rb,
lib/rss/maker/image.rb,
lib/rss/maker/slash.rb,
lib/rss/maker/itunes.rb,
lib/rss/maker/content.rb,
lib/rss/maker/taxonomy.rb,
lib/rss/maker/trackback.rb,
lib/rss/maker/dublincore.rb

Defined Under Namespace

Classes: ContentBase, DescriptionBase, EnclosureBase, GuidBase, ITunesDuration, RightsBase, SourceBase, TitleBase

Constant Summary collapse

CategoriesBase =
ChannelBase::CategoriesBase
AuthorsBase =
ChannelBase::AuthorsBase
LinksBase =
ChannelBase::LinksBase
ContributorsBase =
ChannelBase::ContributorsBase

Constants inherited from Base

Base::NEED_INITIALIZE_VARIABLES, Base::OTHER_ELEMENTS

Instance Attribute Summary

Attributes inherited from Base

#maker

Instance Method Summary collapse

Methods included from DublinCoreModel

append_features, install_dublin_core

Methods included from TrackBackModel

append_features

Methods included from TaxonomyTopicsModel

append_features, install_taxo_topics

Methods included from ContentModel

append_features

Methods included from RSS::Maker::ITunesItemModel

append_features

Methods included from RSS::Maker::ITunesBaseModel

#def_class_accessor, #def_csv_accessor, #def_elements_class_accessor, #def_yes_clean_other_accessor, #def_yes_other_accessor

Methods included from SlashModel

append_features

Methods included from RSS::Maker::ImageItemModel

append_features, install_image_item

Methods inherited from Base

add_need_initialize_variable, add_other_element, def_array_element, def_classed_element, def_classed_element_without_accessor, def_classed_elements, def_csv_element, def_other_element, def_other_element_without_accessor, #have_required_values?, inherited, inherited_base, #initialize, need_initialize_variables, other_elements, #variable_is_set?

Methods included from Utils::InheritedReader

#inherited_array_reader, #inherited_hash_reader, #inherited_reader

Constructor Details

This class inherits a constructor from RSS::Maker::Base

Instance Method Details

#<=>(other) ⇒ Object



756
757
758
759
760
761
762
763
764
765
766
767
768
# File 'lib/rss/maker/base.rb', line 756

def <=>(other)
  _date = date || dc_date
  _other_date = other.date || other.dc_date
  if _date and _other_date
    _date <=> _other_date
  elsif _date
    1
  elsif _other_date
    -1
  else
    0
  end
end

#date=(_date) ⇒ Object



733
734
735
# File 'lib/rss/maker/base.rb', line 733

def date=(_date)
  @date = _parse_date_if_needed(_date)
end

#pubDateObject



737
738
739
# File 'lib/rss/maker/base.rb', line 737

def pubDate
  date
end

#pubDate=(date) ⇒ Object



741
742
743
# File 'lib/rss/maker/base.rb', line 741

def pubDate=(date)
  self.date = date
end

#updatedObject



745
746
747
# File 'lib/rss/maker/base.rb', line 745

def updated
  date
end

#updated=(date) ⇒ Object



749
750
751
# File 'lib/rss/maker/base.rb', line 749

def updated=(date)
  self.date = date
end