Sha256: 07ae777df7a5de0aa0725e6b8b7b72c044a8fe44e97ad1638f00907134c3e51f
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
require_relative 'meta' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moysklad-0.3.0 | lib/moysklad/entities/company_settings_metadata.rb |