Class: RSS::Atom::Entry
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: | |
| Instance Chain: | |
| Inherits: | RSS::Element 
 | 
| Defined in: | lib/rss/atom.rb, lib/rss/dublincore/atom.rb | 
Overview
Defines a top-level ::RSS::Atom Entry element
Constant Summary
- 
    Author =
    
 # File 'lib/rss/atom.rb', line 789Feed::Entry::Author 
- 
    Category =
    
 # File 'lib/rss/atom.rb', line 790Feed::Entry::Category 
- 
    Content =
    
 # File 'lib/rss/atom.rb', line 791Feed::Entry::Content 
- 
    Contributor =
    
 # File 'lib/rss/atom.rb', line 792Feed::Entry::Contributor 
- 
    Id =
    
 # File 'lib/rss/atom.rb', line 793Feed::Entry::Id 
- 
    Link =
    
 # File 'lib/rss/atom.rb', line 794Feed::Entry::Link 
- 
    Published =
    
 # File 'lib/rss/atom.rb', line 795Feed::Entry::Published 
- 
    Rights =
    
 # File 'lib/rss/atom.rb', line 796Feed::Entry::Rights 
- 
    Source =
    
 # File 'lib/rss/atom.rb', line 797Feed::Entry::Source 
- 
    Summary =
    
 # File 'lib/rss/atom.rb', line 798Feed::Entry::Summary 
- 
    Title =
    
 # File 'lib/rss/atom.rb', line 799Feed::Entry::Title 
- 
    Updated =
    
 # File 'lib/rss/atom.rb', line 800Feed::Entry::Updated 
::RSS::Element - Inherited
GET_ATTRIBUTES, HAVE_CHILDREN_ELEMENTS, INDENT, MODELS, MUST_CALL_VALIDATORS, NEED_INITIALIZE_VARIABLES, PLURAL_FORMS, TO_ELEMENT_METHODS
CommonModel - Included
::RSS::DublinCoreModel - Included
Class Attribute Summary
::RSS::Element - Inherited
Class Method Summary
- 
    
      .new(version = nil, encoding = nil, standalone = nil)  ⇒ Entry 
    
    constructor
    Creates a new ::RSS::Atom Entry element. 
::RSS::Element - Inherited
::RSS::Utils::InheritedReader - Extended
::RSS::BaseModel - Extended
::RSS::Utils - Included
| element_initialize_arguments? | This method is used inside of several different objects to determine if special behavior is needed in the constructor. | 
| get_file_and_line_from_caller | Returns an array of two elements: the filename where the calling method is located, and the line number where it is defined. | 
| h, | |
| html_escape | Takes a string  | 
| new_with_value_if_need | If  | 
| to_class_name | Given a  | 
Instance Attribute Summary
- 
    
      #have_author?  ⇒ Boolean 
    
    readonly
    Returns where there are any authors present or there is a source with an author. 
- #have_required_elements? ⇒ Boolean readonly private
::RSS::RootElementMixin - Included
| #encoding, #output_encoding, #output_encoding=, #standalone, #version, #feed_subtype, #feed_type, #feed_version | 
::RSS::XMLStyleSheetMixin - Included
::RSS::Element - Inherited
Instance Method Summary
- 
    
      #items  
    
    Returns the Entryin an array.
- 
    
      #setup_maker(maker)  
    
    sets up the makerfor constructingEntryelements.
- #atom_validate(ignore_unknown_element, tags, uri) private
- #maker_target(maker) private
DuplicateLinkChecker - Included
| #validate_duplicate_links | Checks if there are duplicate links with the same type and hreflang attributes that have an alternate (or empty) rel attribute. | 
::RSS::RootElementMixin - Included
| #feed_info, #initialize, #setup_maker, #to_atom, #to_feed, #to_rss, #to_xml, #maker_target, #ns_declarations, #same_feed_type?, #tag, #xmldecl | 
::RSS::XMLStyleSheetMixin - Included
::RSS::Element - Inherited
::RSS::SetupMaker - Included
| #setup_maker, #maker_target, #not_need_to_call_setup_maker_variables, #setup_maker_attributes, #setup_maker_element, #setup_maker_elements | 
::RSS::Utils - Included
| #element_initialize_arguments? | This method is used inside of several different objects to determine if special behavior is needed in the constructor. | 
| #get_file_and_line_from_caller | Returns an array of two elements: the filename where the calling method is located, and the line number where it is defined. | 
| #h, | |
| #html_escape | Takes a string  | 
| #new_with_value_if_need | If  | 
| #to_class_name | Given a  | 
Constructor Details
    .new(version = nil, encoding = nil, standalone = nil)  ⇒ Entry 
  
Creates a new ::RSS::Atom Entry element
# File 'lib/rss/atom.rb', line 750
def initialize(version=nil, encoding=nil, standalone=nil) super("1.0", version, encoding, standalone) @feed_type = "atom" @feed_subtype = "entry" end
Instance Attribute Details
    #have_author?  ⇒ Boolean  (readonly)
  
Returns where there are any authors present or there is a source with an author
# File 'lib/rss/atom.rb', line 768
def .any? {|| !.to_s.empty?} or (source and source.) end
    #have_required_elements?  ⇒ Boolean  (readonly, private)
  
  [ GitHub ]
# File 'lib/rss/atom.rb', line 781
def have_required_elements? super and end
Instance Method Details
#atom_validate(ignore_unknown_element, tags, uri) (private)
[ GitHub ]# File 'lib/rss/atom.rb', line 774
def atom_validate(ignore_unknown_element, , uri) unless raise MissingTagError.new("author", tag_name) end validate_duplicate_links(links) end
#items
Returns the Entry in an array
# File 'lib/rss/atom.rb', line 757
def items [self] end
#maker_target(maker) (private)
[ GitHub ]# File 'lib/rss/atom.rb', line 785
def maker_target(maker) maker.items.new_item end
#setup_maker(maker)
sets up the maker for constructing Entry elements
# File 'lib/rss/atom.rb', line 762
def setup_maker(maker) maker = maker.maker if maker.respond_to?("maker") super(maker) end