22 lines
414 B
Ruby
Raw Normal View History

2016-09-24 13:52:43 +02:00
module Hbc
class DSL
class Appcast
attr_reader :parameters, :checkpoint
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def initialize(uri, parameters = {})
@parameters = parameters
@uri = UnderscoreSupportingURI.parse(uri)
@checkpoint = @parameters[:checkpoint]
end
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def to_yaml
[@uri, @parameters].to_yaml
end
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def to_s
@uri.to_s
end
end
2016-08-18 22:11:42 +03:00
end
end