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

Version Path
moysklad-0.5 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.10 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.9 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.8 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.7 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.6 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.5 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.4 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.3 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.2 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.1 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.4.0 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.3.4 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.3.3 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.3.2 lib/moysklad/entities/company_settings_metadata.rb
moysklad-0.3.1 lib/moysklad/entities/company_settings_metadata.rb