Class: Pinspec::Index

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnsObject (readonly)

Returns the value of attribute columns

Returns:

  • (Object)

    the current value of columns



418
419
420
# File 'lib/pinspec/types.rb', line 418

def columns
  @columns
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



418
419
420
# File 'lib/pinspec/types.rb', line 418

def name
  @name
end

#uniqueObject (readonly)

Returns the value of attribute unique

Returns:

  • (Object)

    the current value of unique



418
419
420
# File 'lib/pinspec/types.rb', line 418

def unique
  @unique
end

#whereObject (readonly)

Returns the value of attribute where

Returns:

  • (Object)

    the current value of where



418
419
420
# File 'lib/pinspec/types.rb', line 418

def where
  @where
end

Instance Method Details

#partial?Boolean

Returns:

  • (Boolean)


423
424
425
# File 'lib/pinspec/types.rb', line 423

def partial?
  !where.nil?
end

#unique?Boolean

Returns:

  • (Boolean)


419
420
421
# File 'lib/pinspec/types.rb', line 419

def unique?
  unique == true
end