Sha256: c65afdacfad261fd7da112c6baba76620fd8aa4b018cbf29c7d77cadce654454
Contents?: true
Size: 608 Bytes
Versions: 16
Compression:
Stored size: 608 Bytes
Contents
module Moysklad::Entities class EntityMeta < Base attribute :href, String attribute :type, String attribute :mediaType, String end class CompanySettingsCustomEntity < Base attribute :meta, Meta attribute :entityMeta, EntityMeta attribute :name, String def id meta.id end def entities(universe) Moysklad::Resources::CustomEntities.indexed(client: universe.client, list_path: entityMeta.href).all end end class CompanySettingsMetadata < Base attribute :meta, Meta attribute :customEntities, Array[CompanySettingsCustomEntity] end end
Version data entries
16 entries across 16 versions & 1 rubygems