Sha256: 5639c5af58c31ae21426c7482be2e58f1a864534126e821918a57677ebb4898e

Contents?: true

Size: 618 Bytes

Versions: 8

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

require 'fortnox/api/types'
require 'fortnox/api/models/base'

module Fortnox
  module API
    module Model
      class Unit < Fortnox::API::Model::Base
        UNIQUE_ID = :code
        STUB = { code: '' }.freeze

        # Url Direct URL to the record
        attribute :url, Types::Nullable::String.is(:read_only)

        # Comments Comments on project. 512 characters
        attribute :code, Types::Required::String.is(:read_only)

        # ContactPerson ContactPerson for project. 50 characters
        attribute :description, Types::Nullable::String
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fortnox-api-0.8.0 lib/fortnox/api/models/unit.rb
fortnox-api-0.7.2 lib/fortnox/api/models/unit.rb
fortnox-api-0.7.1 lib/fortnox/api/models/unit.rb
fortnox-api-0.7.0 lib/fortnox/api/models/unit.rb
fortnox-api-0.6.3 lib/fortnox/api/models/unit.rb
fortnox-api-0.6.2 lib/fortnox/api/models/unit.rb
fortnox-api-0.6.1 lib/fortnox/api/models/unit.rb
fortnox-api-0.6.0 lib/fortnox/api/models/unit.rb