class Apipie::Params::Descriptor::Integer
validate arguments type
Public Class Methods
build(type, options, block)
click to toggle source
# File lib/apipie/params/descriptor.rb, line 112 def self.build(type, options, block) self.new(options) if type == ::Integer end
Public Instance Methods
description()
click to toggle source
# File lib/apipie/params/descriptor.rb, line 116 def description "Must be an integer" end
json_schema()
click to toggle source
Calls superclass method
Apipie::Params::Descriptor::JsonSchema#json_schema
# File lib/apipie/params/descriptor.rb, line 120 def json_schema super.merge('type' => 'integer') end