Class: Pinspec::Column
- Inherits:
-
Data
- Object
- Data
- Pinspec::Column
- Defined in:
- lib/pinspec/types.rb
Instance Attribute Summary collapse
-
#array ⇒ Object
readonly
Returns the value of attribute array.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#null ⇒ Object
readonly
Returns the value of attribute null.
-
#precision ⇒ Object
readonly
Returns the value of attribute precision.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#unknown_type ⇒ Object
readonly
Returns the value of attribute unknown_type.
Instance Method Summary collapse
Instance Attribute Details
#array ⇒ Object (readonly)
Returns the value of attribute array
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def array @array end |
#default ⇒ Object (readonly)
Returns the value of attribute default
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def default @default end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def limit @limit end |
#line ⇒ Object (readonly)
Returns the value of attribute line
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def name @name end |
#null ⇒ Object (readonly)
Returns the value of attribute null
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def null @null end |
#precision ⇒ Object (readonly)
Returns the value of attribute precision
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def precision @precision end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def scale @scale end |
#type ⇒ Object (readonly)
Returns the value of attribute type
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def type @type end |
#unknown_type ⇒ Object (readonly)
Returns the value of attribute unknown_type
362 363 364 |
# File 'lib/pinspec/types.rb', line 362 def unknown_type @unknown_type end |
Instance Method Details
#nullable? ⇒ Boolean
365 366 367 |
# File 'lib/pinspec/types.rb', line 365 def nullable? null != false end |
#required? ⇒ Boolean
373 374 375 |
# File 'lib/pinspec/types.rb', line 373 def required? !nullable? && default.nil? end |
#unknown_type? ⇒ Boolean
369 370 371 |
# File 'lib/pinspec/types.rb', line 369 def unknown_type? unknown_type == true end |