Sha256: 64cdcc5eefee48389dd653c7464546f6c593dd84e979c0831c7f88bfbbf4c239

Contents?: true

Size: 729 Bytes

Versions: 8

Compression:

Stored size: 729 Bytes

Contents

# frozen_string_literal: true

require 'rakuten_web_service/genre'
require 'rakuten_web_service/ichiba/ranking'
require 'rakuten_web_service/ichiba/product'

module RakutenWebService
  module Ichiba
    class Genre < RakutenWebService::BaseGenre
      endpoint 'https://app.rakuten.co.jp/services/api/IchibaGenre/Search/20140222'

      attribute :genreId, :genreName, :genreLevel, :itemCount

      root_id 0

      def ranking(options = {})
        options = options.merge(genre_id: id)
        RakutenWebService::Ichiba::RankingItem.search(options)
      end

      def products(options = {})
        options = options.merge(genre_id: id)
        RakutenWebService::Ichiba::Product.search(options)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rakuten_web_service-1.13.2 lib/rakuten_web_service/ichiba/genre.rb
rakuten_web_service-1.13.1 lib/rakuten_web_service/ichiba/genre.rb
rakuten_web_service-1.13.0 lib/rakuten_web_service/ichiba/genre.rb
rakuten_web_service-1.12.0 lib/rakuten_web_service/ichiba/genre.rb
rakuten_web_service-1.11.0 lib/rakuten_web_service/ichiba/genre.rb
rakuten_web_service-1.10.0 lib/rakuten_web_service/ichiba/genre.rb
rakuten_web_service-1.9.2 lib/rakuten_web_service/ichiba/genre.rb
rakuten_web_service-1.9.1 lib/rakuten_web_service/ichiba/genre.rb