Sha256: b2fed446e187066e53075d96ef72d637f1d1a6278669966715e1a64a77036897

Contents?: true

Size: 567 Bytes

Versions: 15

Compression:

Stored size: 567 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

      def forbidden?
        @forbidden == true
      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

15 entries across 15 versions & 1 rubygems

Version Path
nicoquery-0.1.8.11 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.10 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.9 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.8 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.7 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.6 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.5 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.4 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.3 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8.2 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.8 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.7 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.6.1 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.6 lib/nicoquery/api/mylist_rss.rb
nicoquery-0.1.5 lib/nicoquery/api/mylist_rss.rb