Sha256: 9badbfa559c25fc0a6dfcb531b3d509b8103b601820f77a0a72c2f5e00f4dd7c
Contents?: true
Size: 884 Bytes
Versions: 3
Compression:
Stored size: 884 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 attr_reader :method, :parameters, :path, :raw, :summary def initialize(method:, parameters:, path:, raw:, summary:) @method = method @parameters = parameters @path = path @raw = raw @summary = summary end def self.new_from_hash(data:, method:, path:) new( method: method, parameters: data['parameters'], path: path, raw: data, summary: data['summary'] ) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems