module Twitch
  module AdSettingHelper
    def ad_server_default(properties)
      properties.attributes[:ad_server_default].try(:upcase)
    end

    def partner(properties)
      properties.attributes[:partner].try(:downcase)
    end

    def program_id(properties)
      properties.attributes[:program_id].try(:downcase)
    end

    def vod_archive_midrolls(properties)
      properties.attributes[:vod_archive_midrolls].try(:capitalize)
    end
  end
end
