Sha256: 261c2770472a7cf993549c02dc665c464f53c92ffc17bac7c41962d0871ac4f0

Contents?: true

Size: 616 Bytes

Versions: 3

Compression:

Stored size: 616 Bytes

Contents

require 'diesel/swagger/node'
require 'diesel/swagger/parameter'

module Diesel
  module Swagger
    class Operation < Node
      attr_reader :id
      alias :method_name :id

      attribute :summary
      attribute :description
      attribute :external_docs, validate: true
      attribute :operation_id
      attribute :deprecated

      list :tags
      list :consumes
      list :produces
      list :parameters, validate: true
      list :responses, validate: true
      list :schemes
      list :security, validate: true

      def initialize(id)
        super()
        @id = id
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
diesel-api-dsl-0.1.3 lib/diesel/swagger/operation.rb
diesel-api-dsl-0.1.2 lib/diesel/swagger/operation.rb
diesel-api-dsl-0.1.1 lib/diesel/swagger/operation.rb