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



378
379
380
# File 'lib/pinspec/types.rb', line 378

def columns
  @columns
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



378
379
380
# File 'lib/pinspec/types.rb', line 378

def name
  @name
end

#uniqueObject (readonly)

Returns the value of attribute unique

Returns:

  • (Object)

    the current value of unique



378
379
380
# File 'lib/pinspec/types.rb', line 378

def unique
  @unique
end

#whereObject (readonly)

Returns the value of attribute where

Returns:

  • (Object)

    the current value of where



378
379
380
# File 'lib/pinspec/types.rb', line 378

def where
  @where
end

Instance Method Details

#partial?Boolean

Returns:

  • (Boolean)


383
384
385
# File 'lib/pinspec/types.rb', line 383

def partial?
  !where.nil?
end

#unique?Boolean

Returns:

  • (Boolean)


379
380
381
# File 'lib/pinspec/types.rb', line 379

def unique?
  unique == true
end