Sha256: f449ec80a80770f0c64563e8d2b7b8f39254d2be1f1010b8a669d8c03b12dcbc

Contents?: true

Size: 599 Bytes

Versions: 13

Compression:

Stored size: 599 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

13 entries across 13 versions & 1 rubygems

Version Path
oneaccess-1.2.0 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-1.1.0 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-1.0.1 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-1.0.0 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.5.0 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.4.5 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.4.4 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.4.3 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.4.2 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.4.1 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.4.0 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.3.0 lib/oneaccess/response/representer/contributors_response.rb
oneaccess-0.2.0 lib/oneaccess/response/representer/contributors_response.rb