Sha256: 25cc68936af0f70c137de992fedfe107ee13f2008d3c9ef4b8dcb616b681c0fc

Contents?: true

Size: 283 Bytes

Versions: 4

Compression:

Stored size: 283 Bytes

Contents

require 'diesel/swagger/node'

module Diesel
  module Swagger
    class Security < Node
      attr_reader :id

      attribute :scopes

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

      def serializable_hash
        scopes || []
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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