Class: Pinspec::Column

Inherits:
Data
  • Object
show all
Defined in:
lib/pinspec/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#arrayObject (readonly)

Returns the value of attribute array

Returns:

  • (Object)

    the current value of array



402
403
404
# File 'lib/pinspec/types.rb', line 402

def array
  @array
end

#defaultObject (readonly)

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



402
403
404
# File 'lib/pinspec/types.rb', line 402

def default
  @default
end

#limitObject (readonly)

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



402
403
404
# File 'lib/pinspec/types.rb', line 402

def limit
  @limit
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



402
403
404
# File 'lib/pinspec/types.rb', line 402

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



402
403
404
# File 'lib/pinspec/types.rb', line 402

def name
  @name
end

#nullObject (readonly)

Returns the value of attribute null

Returns:

  • (Object)

    the current value of null



402
403
404
# File 'lib/pinspec/types.rb', line 402

def null
  @null
end

#precisionObject (readonly)

Returns the value of attribute precision

Returns:

  • (Object)

    the current value of precision



402
403
404
# File 'lib/pinspec/types.rb', line 402

def precision
  @precision
end

#scaleObject (readonly)

Returns the value of attribute scale

Returns:

  • (Object)

    the current value of scale



402
403
404
# File 'lib/pinspec/types.rb', line 402

def scale
  @scale
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



402
403
404
# File 'lib/pinspec/types.rb', line 402

def type
  @type
end

#unknown_typeObject (readonly)

Returns the value of attribute unknown_type

Returns:

  • (Object)

    the current value of unknown_type



402
403
404
# File 'lib/pinspec/types.rb', line 402

def unknown_type
  @unknown_type
end

Instance Method Details

#nullable?Boolean

Returns:

  • (Boolean)


405
406
407
# File 'lib/pinspec/types.rb', line 405

def nullable?
  null != false
end

#required?Boolean

Returns:

  • (Boolean)


413
414
415
# File 'lib/pinspec/types.rb', line 413

def required?
  !nullable? && default.nil?
end

#unknown_type?Boolean

Returns:

  • (Boolean)


409
410
411
# File 'lib/pinspec/types.rb', line 409

def unknown_type?
  unknown_type == true
end