Sha256: 08140d4a46dbdf055ca42778632624dcf5bcad74ed56e711d07c28adfef12ea7

Contents?: true

Size: 386 Bytes

Versions: 7

Compression:

Stored size: 386 Bytes

Contents

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/20120927'
      attribute :rank

      def self.parse_response(response)
        response['Items'].map { |item| RankingItem.new(item['Item']) }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rakuten_web_service-0.2.3 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-0.2.2 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-0.2.1 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-0.2.0 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-0.1.1 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-0.1.0 lib/rakuten_web_service/ichiba/ranking.rb
rakuten_web_service-0.0.1 lib/rakuten_web_service/ichiba/ranking.rb