Sha256: ba7206e5147fa3b910ffe4ccd4b0ded5b1cc66b00a7aeafcdea496bed11f8ac1

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 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, [TrueClass, FalseClass], default: true
    typesafe_accessor :custom, [TrueClass, FalseClass], default: false, if: -> { self.type == 'object' }
    typesafe_accessor :description, String
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
try_api-0.1.18 app/models/try_api/parameter.rb