Sha256: cdfe7b75e13b689abcb7371e941e8ad501434bec7e6889ae0fbece493bb89d39

Contents?: true

Size: 401 Bytes

Versions: 11

Compression:

Stored size: 401 Bytes

Contents

module TryApi
  class Parameter < TryApi::Base
    typesafe_accessor :name, String
    typesafe_accessor :type, String
    typesafe_accessor :parameters, Array, default: [], items_type: TryApi::Parameter
    typesafe_accessor :required, Boolean, default: true
    typesafe_accessor :custom, Boolean, default: false, if: -> { self.type == 'object' }
    typesafe_accessor :description, String
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
try_api-0.1.17 app/models/try_api/parameter.rb
try_api-0.1.16 app/models/try_api/parameter.rb
try_api-0.1.15 app/models/try_api/parameter.rb
try_api-0.1.14 app/models/try_api/parameter.rb
try_api-0.1.13 app/models/try_api/parameter.rb
try_api-0.1.12 app/models/try_api/parameter.rb
try_api-0.1.11 app/models/try_api/parameter.rb
try_api-0.1.10 app/models/try_api/parameter.rb
try_api-0.1.9 app/models/try_api/parameter.rb
try_api-0.1.8 app/models/try_api/parameter.rb
try_api-0.1.7 app/models/try_api/parameter.rb