Sha256: 501954efc7860c4af4eefc3f5479aed05495dcb8f6c12c482a0bcd0140826954

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

require 'rakuten_web_service/ichiba/item'

module RakutenWebService
  module Ichiba
    class RankingItem < RakutenWebService::Ichiba::Item
      endpoint 'https://app.rakuten.co.jp/services/api/IchibaItem/Ranking/20170628'

      set_parser do |response|
        response['Items'].map { |item| RankingItem.new(item) }
      end

      attribute :rank
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rakuten_web_service-1.12.0 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-1.11.0 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-1.10.0 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-1.9.2 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-1.9.1 lib/rakuten_web_service/ichiba/ranking.rb