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



303
304
305
# File 'lib/pinspec/types.rb', line 303

def factory
  @factory
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



303
304
305
# File 'lib/pinspec/types.rb', line 303

def kind
  @kind
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



303
304
305
# File 'lib/pinspec/types.rb', line 303

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



303
304
305
# File 'lib/pinspec/types.rb', line 303

def name
  @name
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



303
304
305
# File 'lib/pinspec/types.rb', line 303

def source
  @source
end

Instance Method Details

#association?Boolean

Returns:

  • (Boolean)


304
305
306
# File 'lib/pinspec/types.rb', line 304

def association?
  kind == :association
end

#transient?Boolean

Returns:

  • (Boolean)


308
309
310
# File 'lib/pinspec/types.rb', line 308

def transient?
  kind == :transient
end