Class: RSS::Maker::RSS10::Textinput

Inherits:
TextinputBase show all
Defined in:
lib/rss/maker/1.0.rb,
lib/rss/maker/dublincore.rb

Instance Method Summary collapse

Methods inherited from TextinputBase

#current_element

Methods included from DublinCoreModel

append_features, install_dublin_core

Methods included from Base

append_features, #initialize

Instance Method Details

#have_required_values?Boolean

Returns:

  • (Boolean)


195
196
197
198
# File 'lib/rss/maker/1.0.rb', line 195

def have_required_values?
  @title and @description and @name and @link and
    @maker.channel.have_required_values?
end

#to_rss(rss) ⇒ Object



184
185
186
187
188
189
190
191
192
193
# File 'lib/rss/maker/1.0.rb', line 184

def to_rss(rss)
  if @link
    textinput = RDF::Textinput.new(@link)
    set = setup_values(textinput)
    if set
      rss.textinput = textinput
      setup_other_elements(rss)
    end
  end
end