Sha256: bccaa4079c3b1f4d3ffab08850784e17e450d72412dbc2bcea4844bf50a9e778
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 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 Property attr_reader :enum, :format, :key, :title, :type def initialize( enum: [], format: nil, key:, title:, type: ) @enum = enum @format = format @key = key @title = title @type = type end def self.new_from_hash(data:, key:) new( enum: data['enum'], format: data['format'], key: key, title: data['title'], type: data['type'] ) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems