Sha256: 18bb4791851a1d3e81678913472438f94c2e72c1846613debc77f0d0177de3e9

Contents?: true

Size: 602 Bytes

Versions: 2

Compression:

Stored size: 602 Bytes

Contents

# frozen_string_literal: true

require_relative "../../data_object/company_light"

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

        property :api_status_code, as: :ApiStatusCode
        property :has_more_records, as: :HasMoreRecords
        property :total_count, as: :TotalCount
        collection :data, as:        :Data,
                          decorator: DataObject::Representer::CompanyLight,
                          class:     DataObject::CompanyLight
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oneaccess-0.1.3 lib/oneaccess/response/representer/companies_representer.rb
oneaccess-0.1.2 lib/oneaccess/response/representer/companies_representer.rb