Class: RSS::Atom::Feed::Entry
| Relationships & Source Files | |
| Namespace Children | |
| Classes: | |
| 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 child ::RSS::Atom Entry element for an ::RSS::Atom Feed
Constant Summary
- 
    Author =
    
 # File 'lib/rss/atom.rb', line 523Feed::Author 
- 
    Category =
    
 # File 'lib/rss/atom.rb', line 524Feed::Category 
- 
    Contributor =
    
 # File 'lib/rss/atom.rb', line 662Feed::Contributor 
- 
    Id =
    
 # File 'lib/rss/atom.rb', line 663Feed::Id 
- 
    Link =
    
 # File 'lib/rss/atom.rb', line 664Feed::Link 
- 
    Rights =
    
 # File 'lib/rss/atom.rb', line 671Feed::Rights 
- 
    Title =
    
 # File 'lib/rss/atom.rb', line 718Feed::Title 
- 
    Updated =
    
 # File 'lib/rss/atom.rb', line 719Feed::Updated 
::RSS::Element - Inherited
GET_ATTRIBUTES, HAVE_CHILDREN_ELEMENTS, INDENT, MODELS, MUST_CALL_VALIDATORS, NEED_INITIALIZE_VARIABLES, PLURAL_FORMS, TO_ELEMENT_METHODS
::RSS::Atom::CommonModel - Included
::RSS::DublinCoreModel - Included
Class Attribute Summary
::RSS::Element - Inherited
Class Method Summary
::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_required_elements? ⇒ Boolean readonly private
::RSS::Element - Inherited
Instance Method Summary
- 
    
      #have_author?(check_parent = true)  ⇒ Boolean 
    
    Returns whether any of the following are true * There are any authors in the feed * If the parent element has an author and the check_parentparameter was given.
- #atom_validate(ignore_unknown_element, tags, uri) private
- #maker_target(items) private
::RSS::Atom::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::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
This class inherits a constructor from RSS::Element
Instance Attribute Details
    #have_required_elements?  ⇒ Boolean  (readonly, private)
  
  [ GitHub ]
# File 'lib/rss/atom.rb', line 511
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 504
def atom_validate(ignore_unknown_element, , uri) unless raise MissingTagError.new("author", tag_name) end validate_duplicate_links(links) end
    #have_author?(check_parent = true)  ⇒ Boolean 
  
Returns whether any of the following are true
- 
There are any authors in the feed 
- 
If the parent element has an author and the check_parentparameter was given.
- 
There is a source element that has an author 
# File 'lib/rss/atom.rb', line 497
def (check_parent=true) .any? {|| !.to_s.empty?} or (check_parent and @parent and @parent.) or (source and source.) end