class Sparklecast::Appcast::Item

Public Instance Methods

to_node(xml) click to toggle source
# File lib/sparklecast/appcast.rb, line 7
def to_node(xml)
  xml.item do
    xml.title title
    xml.description do
      xml.cdata description
    end
    xml.pubDate pub_date.rfc2822
    xml.enclosure enclosure
  end
end

Private Instance Methods

enclosure() click to toggle source
# File lib/sparklecast/appcast.rb, line 20
def enclosure
  {
    'url' => url,
    'sparkle:version' => sparkle_version,
    'length' => length,
    'type' => type,
    'sparkle:dsaSignature' => dsa_signature
  }.reject { |_, v| v.nil? }
end