Class: SchemaOrg::Float
- Inherits:
-
Base
- Object
- Base
- SchemaOrg::Float
show all
- Includes:
- Mixins::Float, _Float
- Defined in:
- lib/schema_org/types/float.rb,
sig/schema_org.rbs
Overview
Constant Summary
collapse
- SCHEMA_NAME =
"Float"
- SCHEMA_TYPES =
[self, SchemaOrg::Number, SchemaOrg::DataType].freeze
- ABSTRACT_TYPE =
true
Class Method Summary
collapse
Instance Method Summary
collapse
schema_property_definitions
schema_property_definitions
schema_property_definitions
Class Method Details
.new(**properties) ⇒ bot
31
32
33
|
# File 'lib/schema_org/types/float.rb', line 31
def new(**properties)
raise AbstractTypeError, "Float is an abstract schema type"
end
|
.schema_name ⇒ String
18
19
20
|
# File 'lib/schema_org/types/float.rb', line 18
def schema_name
SCHEMA_NAME
end
|
.schema_type?(other_type) ⇒ Boolean
26
27
28
29
|
# File 'lib/schema_org/types/float.rb', line 26
def schema_type?(other_type)
Base.schema_type_argument!(other_type)
SCHEMA_TYPES.include?(other_type)
end
|
.schema_types ⇒ ::Array[::Class]
22
23
24
|
# File 'lib/schema_org/types/float.rb', line 22
def schema_types
SCHEMA_TYPES
end
|
Instance Method Details
#schema_type? ⇒ Boolean
47858
|
# File 'sig/schema_org.rbs', line 47858
def schema_type?: (untyped) -> bool
|
#schema_types ⇒ ::Array[::Class]
47857
|
# File 'sig/schema_org.rbs', line 47857
def schema_types: () -> ::Array[::Class]
|