Class: Pinspec::FactoryAttribute

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#factoryObject (readonly)

Returns the value of attribute factory

Returns:

  • (Object)

    the current value of factory



311
312
313
# File 'lib/pinspec/types.rb', line 311

def factory
  @factory
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



311
312
313
# File 'lib/pinspec/types.rb', line 311

def kind
  @kind
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



311
312
313
# File 'lib/pinspec/types.rb', line 311

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



311
312
313
# File 'lib/pinspec/types.rb', line 311

def name
  @name
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



311
312
313
# File 'lib/pinspec/types.rb', line 311

def source
  @source
end

Instance Method Details

#association?Boolean

Returns:

  • (Boolean)


312
313
314
# File 'lib/pinspec/types.rb', line 312

def association?
  kind == :association
end

#transient?Boolean

Returns:

  • (Boolean)


316
317
318
# File 'lib/pinspec/types.rb', line 316

def transient?
  kind == :transient
end