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.



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

def content
  @content
end

Instance Method Details

#hour=(hour) ⇒ Object



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

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

#minute=(minute) ⇒ Object



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

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

#second=(second) ⇒ Object



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

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

#to_feed(feed, current) ⇒ Object



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

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