Class: Motion::Project::Sparkle::Appcast
- Inherits:
-
Object
- Object
- Motion::Project::Sparkle::Appcast
- Defined in:
- lib/motion/project/appcast.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#feed_base_url ⇒ Object
Returns the value of attribute feed_base_url.
-
#feed_filename ⇒ Object
Returns the value of attribute feed_filename.
-
#notes_base_url ⇒ Object
Returns the value of attribute notes_base_url.
-
#notes_filename ⇒ Object
Returns the value of attribute notes_filename.
-
#package_base_url ⇒ Object
Returns the value of attribute package_base_url.
-
#package_filename ⇒ Object
Returns the value of attribute package_filename.
Instance Method Summary collapse
- #feed_url ⇒ Object
-
#initialize ⇒ Appcast
constructor
A new instance of Appcast.
- #notes_url ⇒ Object
- #package_url ⇒ Object
Constructor Details
#initialize ⇒ Appcast
Returns a new instance of Appcast.
98 99 100 101 102 103 104 105 106 |
# File 'lib/motion/project/appcast.rb', line 98 def initialize @feed_base_url = nil @feed_filename = 'releases.xml' @notes_base_url = nil @notes_filename = 'release_notes.html' @package_base_url = nil @package_filename = nil @base_url = nil end |
Instance Attribute Details
#base_url ⇒ Object
Returns the value of attribute base_url.
90 91 92 |
# File 'lib/motion/project/appcast.rb', line 90 def base_url @base_url end |
#feed_base_url ⇒ Object
Returns the value of attribute feed_base_url.
90 91 92 |
# File 'lib/motion/project/appcast.rb', line 90 def feed_base_url @feed_base_url end |
#feed_filename ⇒ Object
Returns the value of attribute feed_filename.
90 91 92 |
# File 'lib/motion/project/appcast.rb', line 90 def feed_filename @feed_filename end |
#notes_base_url ⇒ Object
Returns the value of attribute notes_base_url.
90 91 92 |
# File 'lib/motion/project/appcast.rb', line 90 def notes_base_url @notes_base_url end |
#notes_filename ⇒ Object
Returns the value of attribute notes_filename.
90 91 92 |
# File 'lib/motion/project/appcast.rb', line 90 def notes_filename @notes_filename end |
#package_base_url ⇒ Object
Returns the value of attribute package_base_url.
90 91 92 |
# File 'lib/motion/project/appcast.rb', line 90 def package_base_url @package_base_url end |
#package_filename ⇒ Object
Returns the value of attribute package_filename.
90 91 92 |
# File 'lib/motion/project/appcast.rb', line 90 def package_filename @package_filename end |
Instance Method Details
#feed_url ⇒ Object
108 109 110 |
# File 'lib/motion/project/appcast.rb', line 108 def feed_url "#{feed_base_url || base_url}/#{feed_filename}" end |
#notes_url ⇒ Object
112 113 114 |
# File 'lib/motion/project/appcast.rb', line 112 def notes_url "#{notes_base_url || base_url}/#{notes_filename}" end |
#package_url ⇒ Object
116 117 118 |
# File 'lib/motion/project/appcast.rb', line 116 def package_url "#{package_base_url || base_url}/#{package_filename}" end |