lib/diesel/swagger/security_definition.rb in diesel-api-dsl-0.1.0 vs lib/diesel/swagger/security_definition.rb in diesel-api-dsl-0.1.1

- old
+ new

@@ -1,15 +1,22 @@ require 'diesel/swagger/node' module Diesel module Swagger class SecurityDefinition < Node + attr_reader :id + attribute :type attribute :description attribute :name attribute :in, symbolize: true attribute :flow attribute :authorization_url attribute :token_url + + def initialize(id) + super() + @id = id + end end end end