Sha256: cede2f3e0939df8ca4f67efe11fe6d0de752bcef630ba4f9382c782e1e7bde17

Contents?: true

Size: 349 Bytes

Versions: 15

Compression:

Stored size: 349 Bytes

Contents

module OasRails
  module Spec
    class License
      include Specable

      attr_accessor :name, :url

      def initialize(**kwargs)
        @name = kwargs[:name] || 'GPL 3.0'
        @url = kwargs[:url] || 'https://www.gnu.org/licenses/gpl-3.0.html#license-text'
      end

      def oas_fields
        [:name, :url]
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
oas_rails-0.9.0 lib/oas_rails/spec/license.rb
oas_rails-0.8.4 lib/oas_rails/spec/license.rb
oas_rails-0.8.3 lib/oas_rails/spec/license.rb
oas_rails-0.8.2 lib/oas_rails/spec/license.rb
oas_rails-0.8.1 lib/oas_rails/spec/license.rb
oas_rails-0.8.0 lib/oas_rails/spec/license.rb
oas_rails-0.7.0 lib/oas_rails/spec/license.rb
oas_rails-0.6.0 lib/oas_rails/spec/license.rb
oas_rails-0.5.0 lib/oas_rails/spec/license.rb
oas_rails-0.4.5 lib/oas_rails/spec/license.rb
oas_rails-0.4.4 lib/oas_rails/spec/license.rb
oas_rails-0.4.3 lib/oas_rails/spec/license.rb
oas_rails-0.4.2 lib/oas_rails/spec/license.rb
oas_rails-0.4.1 lib/oas_rails/spec/license.rb
oas_rails-0.4.0 lib/oas_rails/spec/license.rb