Sha256: 78a017b86efcf69d35c2f787d87fc8eac89bcdf8325fd738295a388dd1ca5c73

Contents?: true

Size: 508 Bytes

Versions: 6

Compression:

Stored size: 508 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, 'numbers=1']
      end

      def format
        "rss=2.0"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nicoquery-0.1.4 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.3 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.2 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.1 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.0 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.0.3 lib/nicoquery/api/mylist_rss.rb