123456789_123456789_123456789_123456789_123456789_

Module: RSS::Atom::DateConstruct

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rss/atom.rb

Overview

::RSS::Element used to describe an ::RSS::Atom date and time in the ISO 8601 format

Examples:

  • 2013-03-04T15:30:02Z

  • 2013-03-04T10:30:02-05:00

Class Method Summary

Instance Method Summary

Class Method Details

.append_features(klass)

[ GitHub ]

  
# File 'lib/rss/atom.rb', line 215

def self.append_features(klass)
  super
  klass.class_eval do
    @content_type = :w3cdtf
    include(ContentModel)
  end
end

Instance Method Details

#atom_validate(ignore_unknown_element, tags, uri)

Raises NotAvailableValueError if element content is nil

[ GitHub ]

  
# File 'lib/rss/atom.rb', line 224

def atom_validate(ignore_unknown_element, tags, uri)
  raise NotAvailableValueError.new(tag_name, "") if content.nil?
end