Sha256: 82bc9700be16b26a491982f397dfd5b49ef6aa7bda18d723c74b3145d4aa7eee

Contents?: true

Size: 268 Bytes

Versions: 3

Compression:

Stored size: 268 Bytes

Contents

require 'ostruct'
require_relative 'resource_list'

module Uploadcare
  class Api
    class GroupList < ResourceList
      private

      def to_resource(api, group_data)
        Uploadcare::Api::Group.new api, group_data["id"], group_data
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uploadcare-ruby-2.1.2 lib/uploadcare/resources/group_list.rb
uploadcare-ruby-2.1.1 lib/uploadcare/resources/group_list.rb
uploadcare-ruby-2.0.0 lib/uploadcare/resources/group_list.rb