Class: RSS::Maker::ITunesItemModel::ITunesDurationBase
- Defined in:
- lib/rss/maker/itunes.rb
Constant Summary
Constants inherited from Base
Base::NEED_INITIALIZE_VARIABLES, Base::OTHER_ELEMENTS
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from Base
Instance Method Summary collapse
- #hour=(hour) ⇒ Object
- #minute=(minute) ⇒ Object
- #second=(second) ⇒ Object
- #to_feed(feed, current) ⇒ Object
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, #have_required_values?, 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
#content ⇒ Object
Returns the value of attribute content.
189 190 191 |
# File 'lib/rss/maker/itunes.rb', line 189 def content @content end |
Instance Method Details
#hour=(hour) ⇒ Object
207 208 209 210 |
# File 'lib/rss/maker/itunes.rb', line 207 def hour=(hour) @hour = Integer(hour) update_content end |
#minute=(minute) ⇒ Object
212 213 214 215 |
# File 'lib/rss/maker/itunes.rb', line 212 def minute=(minute) @minute = Integer(minute) update_content end |
#second=(second) ⇒ Object
217 218 219 220 |
# File 'lib/rss/maker/itunes.rb', line 217 def second=(second) @second = Integer(second) update_content end |
#to_feed(feed, current) ⇒ Object
222 223 224 225 226 227 |
# File 'lib/rss/maker/itunes.rb', line 222 def to_feed(feed, current) if @content and current.respond_to?(:itunes_duration=) current.itunes_duration ||= current.class::ITunesDuration.new current.itunes_duration.content = @content end end |