Class: RSS::Maker::TrackBackModel::TrackBackAboutsBase::TrackBackAboutBase

Inherits:
Base
  • Object
show all
Defined in:
lib/rss/maker/trackback.rb

Constant Summary

Constants inherited from Base

Base::NEED_INITIALIZE_VARIABLES, Base::OTHER_ELEMENTS

Instance Attribute Summary collapse

Attributes inherited from Base

#maker

Instance Method Summary collapse

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, 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 Attribute Details

#valueObject Also known as: resource, content

Returns the value of attribute value.



21
22
23
# File 'lib/rss/maker/trackback.rb', line 21

def value
  @value
end

Instance Method Details

#have_required_values?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/rss/maker/trackback.rb', line 29

def have_required_values?
  @value
end

#to_feed(feed, current) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/rss/maker/trackback.rb', line 33

def to_feed(feed, current)
  if current.respond_to?(:trackback_abouts) and have_required_values?
    about = current.class::TrackBackAbout.new
    setup_values(about)
    setup_other_elements(about)
    current.trackback_abouts << about
  end
end