Sha256: 3ef11d33336e1c1d2b9ba7f51e905efc88040df90c93ba4562b4f65b205fcbd4

Contents?: true

Size: 495 Bytes

Versions: 5

Compression:

Stored size: 495 Bytes

Contents

require 'active_support/core_ext'
require 'nicoquery/api/base'


module NicoQuery
  module Api
    class MylistRSS < NicoQuery::Api::Base

      def initialize(mylist_id)
        @dynamic_segment = mylist_id.to_s
        @params_array = params_array
      end

      private
      def host
        'www.nicovideo.jp'
      end

      def static_segment
        'mylist'
      end

      def params_array
        [format]
      end

      def format
        "rss=2.0"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nicoquery-0.0.2.4 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.0.2.3 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.0.2.2 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.0.2.1 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.0.2 lib/nicoquery/api/mylist_rss.rb