Sha256: df3f7eef6596e8c5950364d75e231967bedebe8fee443d28a8da89013e1b6edd

Contents?: true

Size: 577 Bytes

Versions: 2

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

require_relative './base_response'
require_relative '../../data_object/meta'
require_relative '../../data_object/contributor'

module ONEAccess
  module Response
    module Representer
      class ContributorsResponse < Representable::Decorator
        include Representable::JSON

        property :meta,
          decorator: DataObject::Representer::Meta,
          class: DataObject::Meta
        collection :data,
          decorator: DataObject::Representer::Contributor,
          class: DataObject::Contributor
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oneaccess-1.3.1 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-1.3.0 lib/oneaccess/response/representer/contributors_response.rb