Sha256: a37d65d877b9cf0a5a38e5599b9059ee8d5a920040db126b180d92c77b82e14b

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

#
# Parser for OpenAPI 3.0 data for a given record method
#
module LedgerSync
  module Adaptors
    module NetSuite
      module Record
        class HTTPMethod < Util::ReadOnlyObject
          attribute :key
          attribute :method
          attribute :path
          attribute :summary

          def initialize(args = {})
            super(
              args.merge(
                key: "#{method} #{path}".downcase
              )
            )
          end

          def parameters
            Parameter.new_from_array(
              raw[:parameters]
            )
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ledger_sync-1.3.4 lib/ledger_sync/adaptors/netsuite/record/http_method.rb