Sha256: 62a90a5523525589870a497da125fb46217fc1468927c9a99d2228170e11ae44

Contents?: true

Size: 520 Bytes

Versions: 7

Compression:

Stored size: 520 Bytes

Contents

# encoding: utf-8
module EfoNelfo
  module V40
    class Order
      class Text < EfoNelfo::PostType
        POST_TYPES = {
          'BT' => 'Bestilling Fritekstlinje',
          'IT' => 'Forespørsel Fritekstlinje'
        }

        # It's important to list the property in the same order as specified in the specs
        property :post_type, alias: :PostType, limit: 2, default: 'BT'
        property :text,      alias: :FriTekst, limit: 30

        def to_s
          text
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
efo_nelfo-0.0.7 lib/efo_nelfo/v40/order/text.rb
efo_nelfo-0.0.6 lib/efo_nelfo/v40/order/text.rb
efo_nelfo-0.0.5 lib/efo_nelfo/v40/order/text.rb
efo_nelfo-0.0.4 lib/efo_nelfo/v40/order/text.rb
efo_nelfo-0.0.3 lib/efo_nelfo/v40/order/text.rb
efo_nelfo-0.0.2 lib/efo_nelfo/v40/order/text.rb
efo_nelfo-0.0.1 lib/efo_nelfo/v40/order/text.rb