Class: RSS::Maker::ITunesItemModel::ITunesDurationBase

Inherits:
Base
  • Object
show all
Defined in:
lib/rss/maker/itunes.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, #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

#contentObject

Returns the value of attribute content.



174
175
176
# File 'lib/rss/maker/itunes.rb', line 174

def content
  @content
end

Instance Method Details

#hour=(hour) ⇒ Object



192
193
194
195
# File 'lib/rss/maker/itunes.rb', line 192

def hour=(hour)
  @hour = Integer(hour)
  update_content
end

#minute=(minute) ⇒ Object



197
198
199
200
# File 'lib/rss/maker/itunes.rb', line 197

def minute=(minute)
  @minute = Integer(minute)
  update_content
end

#second=(second) ⇒ Object



202
203
204
205
# File 'lib/rss/maker/itunes.rb', line 202

def second=(second)
  @second = Integer(second)
  update_content
end

#to_feed(feed, current) ⇒ Object



207
208
209
210
211
212
# File 'lib/rss/maker/itunes.rb', line 207

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