lib/feedjira/podcast/channel/optional.rb in feedjira-podcast-0.9.0 vs lib/feedjira/podcast/channel/optional.rb in feedjira-podcast-0.9.1
- old
+ new
@@ -36,10 +36,16 @@
base.element :docs do |docs|
Addressable::URI.parse(docs)
end
# base.element :cloud
+ # A has five required attributes: domain is the domain name or IP
+ # address of the cloud, port is the TCP port that the cloud is running
+ # on, path is the location of its responder, registerProcedure is the
+ # name of the procedure to call to request notification, and protocol
+ # is xml-rpc, soap or http-post (case-sensitive), indicating which
+ # protocol is to be used.
base.element :ttl do |ttl|
ttl.to_f
end
@@ -55,11 +61,19 @@
_image && _image.description,
)
end
# base.element :rating
- # base.element :skipHours
- # base.element :skipDays
+ base.element :textInput, as: :text_input, class: TextInput, default: Struct.new(:title, :description, :name, :link).new
+ base.element :skipHours, as: :skip_hours, class: SkipHours
+ base.element :skipDays, as: :skip_days, class: SkipDays
+
+ def skip
+ @skip ||= Struct.new(:hours, :days).new(
+ skip_hours.hours,
+ skip_days.days
+ )
+ end
end
end
end
end