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
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def array @array end |
#default ⇒ Object (readonly)
Returns the value of attribute default
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def default @default end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def limit @limit end |
#line ⇒ Object (readonly)
Returns the value of attribute line
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def name @name end |
#null ⇒ Object (readonly)
Returns the value of attribute null
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def null @null end |
#precision ⇒ Object (readonly)
Returns the value of attribute precision
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def precision @precision end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def scale @scale end |
#type ⇒ Object (readonly)
Returns the value of attribute type
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def type @type end |
#unknown_type ⇒ Object (readonly)
Returns the value of attribute unknown_type
402 403 404 |
# File 'lib/pinspec/types.rb', line 402 def unknown_type @unknown_type end |
Instance Method Details
#nullable? ⇒ Boolean
405 406 407 |
# File 'lib/pinspec/types.rb', line 405 def nullable? null != false end |
#required? ⇒ Boolean
413 414 415 |
# File 'lib/pinspec/types.rb', line 413 def required? !nullable? && default.nil? end |
#unknown_type? ⇒ Boolean
409 410 411 |
# File 'lib/pinspec/types.rb', line 409 def unknown_type? unknown_type == true end |