Class: Ognivo::Appcast::Item

Inherits:
Struct
  • Object
show all
Defined in:
lib/ognivo/appcast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



5
6
7
# File 'lib/ognivo/appcast.rb', line 5

def description
  @description
end

#dsa_signatureObject

Returns the value of attribute dsa_signature

Returns:

  • (Object)

    the current value of dsa_signature



5
6
7
# File 'lib/ognivo/appcast.rb', line 5

def dsa_signature
  @dsa_signature
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



5
6
7
# File 'lib/ognivo/appcast.rb', line 5

def length
  @length
end

#pub_dateObject

Returns the value of attribute pub_date

Returns:

  • (Object)

    the current value of pub_date



5
6
7
# File 'lib/ognivo/appcast.rb', line 5

def pub_date
  @pub_date
end

#sparkle_versionObject

Returns the value of attribute sparkle_version

Returns:

  • (Object)

    the current value of sparkle_version



5
6
7
# File 'lib/ognivo/appcast.rb', line 5

def sparkle_version
  @sparkle_version
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



5
6
7
# File 'lib/ognivo/appcast.rb', line 5

def title
  @title
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/ognivo/appcast.rb', line 5

def type
  @type
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



5
6
7
# File 'lib/ognivo/appcast.rb', line 5

def url
  @url
end

Instance Method Details

#to_node(xml) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/ognivo/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