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



362
363
364
# File 'lib/pinspec/types.rb', line 362

def array
  @array
end

#defaultObject (readonly)

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



362
363
364
# File 'lib/pinspec/types.rb', line 362

def default
  @default
end

#limitObject (readonly)

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



362
363
364
# File 'lib/pinspec/types.rb', line 362

def limit
  @limit
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



362
363
364
# File 'lib/pinspec/types.rb', line 362

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



362
363
364
# File 'lib/pinspec/types.rb', line 362

def name
  @name
end

#nullObject (readonly)

Returns the value of attribute null

Returns:

  • (Object)

    the current value of null



362
363
364
# File 'lib/pinspec/types.rb', line 362

def null
  @null
end

#precisionObject (readonly)

Returns the value of attribute precision

Returns:

  • (Object)

    the current value of precision



362
363
364
# File 'lib/pinspec/types.rb', line 362

def precision
  @precision
end

#scaleObject (readonly)

Returns the value of attribute scale

Returns:

  • (Object)

    the current value of scale



362
363
364
# File 'lib/pinspec/types.rb', line 362

def scale
  @scale
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



362
363
364
# File 'lib/pinspec/types.rb', line 362

def type
  @type
end

#unknown_typeObject (readonly)

Returns the value of attribute unknown_type

Returns:

  • (Object)

    the current value of unknown_type



362
363
364
# File 'lib/pinspec/types.rb', line 362

def unknown_type
  @unknown_type
end

Instance Method Details

#nullable?Boolean

Returns:

  • (Boolean)


365
366
367
# File 'lib/pinspec/types.rb', line 365

def nullable?
  null != false
end

#required?Boolean

Returns:

  • (Boolean)


373
374
375
# File 'lib/pinspec/types.rb', line 373

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

#unknown_type?Boolean

Returns:

  • (Boolean)


369
370
371
# File 'lib/pinspec/types.rb', line 369

def unknown_type?
  unknown_type == true
end