Sha256: 91aeff79ecedf16848dd9e0effd71eeb28e08c4a6bdb18d0468db4d123c84725

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

require 'rakuten_web_service/resource'

module RakutenWebService
  module Ichiba
    class TagGroup < Resource
      endpoint 'https://app.rakuten.co.jp/services/api/IchibaTag/Search/20140222'

      parser do |response|
        response['tagGroups'].map { |tag_group| TagGroup.new(tag_group) }
      end

      attribute :tagGroupName, :tagGroupId

      def tags
        get_attribute('tags').map do |tag|
          Tag.new(tag)
        end
      end
    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/tag_group.rb
rakuten_web_service-1.13.1 lib/rakuten_web_service/ichiba/tag_group.rb
rakuten_web_service-1.13.0 lib/rakuten_web_service/ichiba/tag_group.rb