Sha256: 42fabd54de38ac0457935393b4cc1bc225e0b187284b8563624d2eb85089318d

Contents?: true

Size: 669 Bytes

Versions: 4

Compression:

Stored size: 669 Bytes

Contents

require 'apiture/swagger/node'
require 'apiture/swagger/parameter'

module Apiture
  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

      hash :security_definitions, validate: true

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apiture-0.2.6 lib/apiture/swagger/operation.rb
apiture-0.2.5 lib/apiture/swagger/operation.rb
apiture-0.2.4 lib/apiture/swagger/operation.rb
apiture-0.2.3 lib/apiture/swagger/operation.rb