Module: Restspec::Schema::Types::TypeMethods
- Included in:
- SingleSchemaDSL
- Defined in:
- lib/restspec/schema/types/type_methods.rb
Instance Method Summary collapse
- #array(options = {}) ⇒ Object
-
#boolean(options = {}) ⇒ Object
Creates a new BooleanType instance with the first argument passed as parameter to the BooleanType constructor.
- #date(options = {}) ⇒ Object
-
#datetime(options = {}) ⇒ Object
Creates a new DateTimeType instance with the first argument passed as parameter to the DateTimeType constructor.
-
#decimal(options = {}) ⇒ Object
Creates a new DecimalType instance with the first argument passed as parameter to the DecimalType constructor.
-
#decimal_string(options = {}) ⇒ Object
Creates a new DecimalStringType instance with the first argument passed as parameter to the DecimalStringType constructor.
-
#embedded_schema(options = {}) ⇒ Object
Creates a new EmbeddedSchemaType instance with the first argument passed as parameter to the EmbeddedSchemaType constructor.
- #hash(options = {}) ⇒ Object
-
#integer(options = {}) ⇒ Object
Creates a new IntegerType instance with the first argument passed as parameter to the IntegerType constructor.
- #null(options = {}) ⇒ Object
- #one_of(options = {}) ⇒ Object
-
#schema_id(options = {}) ⇒ Object
Creates a new SchemaIdType instance with the first argument passed as parameter to the SchemaIdType constructor.
-
#string(options = {}) ⇒ Object
Creates a new StringType instance with the first argument passed as parameter to the StringType constructor.
Instance Method Details
#array(options = {}) ⇒ Object
24 |
# File 'lib/restspec/schema/types/type_methods.rb', line 24 define_type_method :array, ArrayType |
#boolean(options = {}) ⇒ Object
Creates a new BooleanType instance with the first argument passed as parameter to the BooleanType constructor.
21 |
# File 'lib/restspec/schema/types/type_methods.rb', line 21 define_type_method :boolean, BooleanType |
#date(options = {}) ⇒ Object
29 |
# File 'lib/restspec/schema/types/type_methods.rb', line 29 define_type_method :date, DateType |
#datetime(options = {}) ⇒ Object
Creates a new DateTimeType instance with the first argument passed as parameter to the DateTimeType constructor.
30 |
# File 'lib/restspec/schema/types/type_methods.rb', line 30 define_type_method :datetime, DateTimeType |
#decimal(options = {}) ⇒ Object
Creates a new DecimalType instance with the first argument passed as parameter to the DecimalType constructor.
20 |
# File 'lib/restspec/schema/types/type_methods.rb', line 20 define_type_method :decimal, DecimalType |
#decimal_string(options = {}) ⇒ Object
Creates a new DecimalStringType instance with the first argument passed as parameter to the DecimalStringType constructor.
22 |
# File 'lib/restspec/schema/types/type_methods.rb', line 22 define_type_method :decimal_string, DecimalStringType |
#embedded_schema(options = {}) ⇒ Object
Creates a new EmbeddedSchemaType instance with the first argument passed as parameter to the EmbeddedSchemaType constructor.
28 |
# File 'lib/restspec/schema/types/type_methods.rb', line 28 define_type_method :embedded_schema, EmbeddedSchemaType |
#hash(options = {}) ⇒ Object
26 |
# File 'lib/restspec/schema/types/type_methods.rb', line 26 define_type_method :hash, HashType |
#integer(options = {}) ⇒ Object
Creates a new IntegerType instance with the first argument passed as parameter to the IntegerType constructor.
19 |
# File 'lib/restspec/schema/types/type_methods.rb', line 19 define_type_method :integer, IntegerType |
#null(options = {}) ⇒ Object
27 |
# File 'lib/restspec/schema/types/type_methods.rb', line 27 define_type_method :null, NullType |
#one_of(options = {}) ⇒ Object
25 |
# File 'lib/restspec/schema/types/type_methods.rb', line 25 define_type_method :one_of, OneOfType |
#schema_id(options = {}) ⇒ Object
Creates a new SchemaIdType instance with the first argument passed as parameter to the SchemaIdType constructor.
23 |
# File 'lib/restspec/schema/types/type_methods.rb', line 23 define_type_method :schema_id, SchemaIdType |
#string(options = {}) ⇒ Object
Creates a new StringType instance with the first argument passed as parameter to the StringType constructor.
18 |
# File 'lib/restspec/schema/types/type_methods.rb', line 18 define_type_method :string, StringType |