Sha256: ff0bdd613029138fa75f79e66a13d3f31bb623d9a869e571b41c7949efd3b7f7

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node/object"

module Openapi3Parser
  module Nodes
    class Server
      include Node::Object

      # @TODO there's scope for an interpolated_url method which can use the
      # values from variables
      def url
        node_data["url"]
      end

      def description
        node_data["description"]
      end

      def variables
        node_data["variables"]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openapi3_parser-0.1.0 lib/openapi3_parser/nodes/server.rb