123456789_123456789_123456789_123456789_123456789_

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

Constant Summary

::RSS::Maker::Base - Inherited

NEED_INITIALIZE_VARIABLES, OTHER_ELEMENTS

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

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

Instance Attribute Details

#date=(_date) (writeonly)

[ GitHub ]

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

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

#pubDate (rw)

[ GitHub ]

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

def pubDate
  date
end

#pubDate=(date) (rw)

[ GitHub ]

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

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

#updated (rw)

[ GitHub ]

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

def updated
  date
end

#updated=(date) (rw)

[ GitHub ]

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

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

Instance Method Details

#<=>(other)

[ GitHub ]

  
# File 'lib/rss/maker/base.rb', line 757

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

#summary

[ GitHub ]

  
# File 'lib/rss/maker/base.rb', line 754

alias_method(:summary, :description)

#summary=

[ GitHub ]

  
# File 'lib/rss/maker/base.rb', line 755

alias_method(:summary=, :description=)