Sha256: bec5d5f230c64348cff6cf62f12600da82631638e7176dc7245b0ed3c6ed012a

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 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'

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

      attribute :rank
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rakuten_web_service-1.13.2 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-1.13.1 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-1.13.0 lib/rakuten_web_service/ichiba/ranking.rb